我这段程序报错,原来能够通过,在win7-64下不能通过,请老师指教一下。
//重载TForm1的WndProc函数,加入对自定义消息的处理代码,这其实相当于创建了TForm类的子类。
//void __fastcall TForm1::WndProc(Messages::TMessage &Message)
void __fastcall TForm1::WndProc(Messages::TMessage &Message)
{
if(Message.Msg==y)
{
if(Message.LParam==WM_LBUTTONDBLCLK)
{
Application->Terminate();
//如果双击图标,则关闭应用程序
}
return;
}
}
报错是:
[C++ Error] test.cpp(41): E2316 '_fastcall TForm1::WndProc(TMessage &)' is not a member of 'TForm1'