CWnd::OnSysKeyDown If the CWnd object has the input focus, the OnSysKeyDown member function is called by the framework when the user holds down the ALT key and then presses another key. afx_msg void OnSysKeyDown( UINT nChar, UINT nRepCnt, UINT nFlags );
WM_SYSKEYDOWM我加了这个消息,但是在调试中没有见其调用。
谢谢楼上两位兄弟
在WinProc中才捕获的到,
建议你写一个属性页基类CBasePropertyPage::CPropertyPage,
LRESULT CBasePropertyPage::WindowProc(UINT message, WPARAM wParam, LPARAM lParam)
{
if (message == WM_KEYDOWN)
{
DoExcute();//一个虚函数,可以在各个具体的属性页中重载,以此来响应不同的事件
...
afx_msg void OnSysKeyDown(
UINT nChar,
UINT nRepCnt,
UINT nFlags
);