MFC中OnNcLButtonDown和OnNcLButtonUp的添加方法

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

具体的做法是:

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

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

posted on 2013-05-25 00:20  张缤分  阅读(616)  评论(0编辑  收藏  举报

导航