OnSysCommand函数
(2010-06-02 08:13:00)
标签:
it |
分类: MFC |
void CTestDlg::OnSysCommand(UINT nID, LPARAM lParam)
这个函数响应系统控制菜单的命令.(即左上角图标处)。
OnSysCommand:The framework calls this member function when the user selects a command from the Control menu, or when the user selects the Maximize or the Minimize button.
可以用来获取最大化最小化关闭的消息,并进行重写。
DIY手动添加消息映射:
如果窗体是对话框,则:
void
CDlgDataMenu::OnSysCommand(UINT
{
}