wm_syscommand not detected

genush 61 Reputation points
2022-02-18T19:16:17.72+00:00

I have two MFC SDI applications, call them A and B. B is derived from A (B is A plus more). I put a handler for the WM_SYSCOMMAND message in CMainFrame of A and it works fine. I put the same handler in B and the OnSysCommand handler in CMainFrame never gets entered. This doesn't seem possible, and I can't think of any reason why that would be. Any ideas greatly appreciated.

Developer technologies C++
Developer technologies Visual Studio Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.