我怎么收不到自定义的消息

土豆薯条 2004-02-05 11:23:34
*.h
#define WM_NC1_NOTIFY (WM_USER + 1)
class TForm1 : public TForm
{
__published: // IDE-managed Components
TButton *Button1;
void __fastcall WMNCNotify(TMessage &Msg);
private: // User declarations
BEGIN_MESSAGE_MAP
VCL_MESSAGE_HANDLER(WM_NC1_NOTIFY, TMessage, WMNCNotify)
END_MESSAGE_MAP(TForm)
public: // User declarations
__fastcall TForm1(TComponent* Owner);
};
*.cpp
void __fastcall TForm1::WMNCNotify(TMessage& Msg)
{
POINT MousePos;
switch(Msg.LParam)
{

case WM_LBUTTONDOWN:
Show();
break;
default:
break;
}
TForm::Dispatch(&Msg);
}
我在switch(Msg.LParam)处设置断点,程序怎么没进来??
...全文
79 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复

13,826

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧