wm_syscommand not detected

genush 1 Reputation point
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.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,036 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,686 questions
{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.