我在VC7中添加事件处理程序时错误的将本来应添加到A类的程序添加到了B类当中,最后才发现这个错误,但是又不知到怎么删除B类的这个多余的成员函数。
因为是利用系统辅助创建的这个函数,所以一定在其他地方也有所修改。有没有办法利用系统辅助删除这个函数呢?
谢谢高手指点。
void InitializeComponent(void)
{
this->browserListView = new System::Windows::Forms::ListView();
this->currentLabel = new System::Windows::Forms::Label();
this->displayLabel = new System::Windows::Forms::Label();
this->SuspendLayout();
//
// browserListView
//
this->browserListView->Location = System::Drawing::Point(0, 104);
this->browserListView->Name = S"browserListView";
this->browserListView->Size = System::Drawing::Size(512, 304);
this->browserListView->TabIndex = 0;
this->browserListView->Click += new System::EventHandler(this, browserListView_Click);
//
// currentLabel
//
this->currentLabel->Location = System::Drawing::Point(16, 40);
this->currentLabel->Name = S"currentLabel";
this->currentLabel->Size = System::Drawing::Size(144, 23);
this->currentLabel->TabIndex = 1;
//
// displayLabel
//
this->displayLabel->Location = System::Drawing::Point(192, 40);
this->displayLabel->Name = S"displayLabel";
this->displayLabel->Size = System::Drawing::Size(288, 23);
this->displayLabel->TabIndex = 2;
//
// Form1
//
this->AutoScaleBaseSize = System::Drawing::Size(6, 14);
this->ClientSize = System::Drawing::Size(512, 405);
this->Controls->Add(this->displayLabel);
this->Controls->Add(this->currentLabel);
this->Controls->Add(this->browserListView);
this->Name = S"Form1";
this->Text = S"Form1";
this->Load += new System::EventHandler(this, Form1_Load);
this->ResumeLayout(false);
}
中,删掉你想删掉的控件的响应方法,比如注红的那行是Form1_Load的调用,不知道你问的是不是这个