MFC中OnNcLButtonDown和OnNcLButtonUp的添加方法

OnNcLButtonDown和OnNcLButtonUp是非客户区响应函数,在CMainFrame中右击Add Windows Message Headle中是没有显示的。

具体的做法是:

点击view->ClassWizard,在出现的对话框,切换到CLASS INFO 选项卡,在Message filter中选择Windows,点击“确定”。

在CMainFrame中右击Add Windows Message Headle。。。就会出现OnNcLButtonDown

原文地址:https://www.cnblogs.com/MasterMonkInTemple/p/3098218.html