I have a MDI MFC application, where I want to use SendMessage() from a CPropertieswnd class to invoke a function in CMainFrame class. The custom message is defined as:
#define WM_CUSTOM (WM_APP + 10)
The messagemap in Mainframe.cpp is :
ON_COMMAND(WM_CUSTOM , &CMainFrame::OnFileNewType1)
In Propertieswnd.cpp file the message is sent:
AfxGetMainWnd()->SendMessage(WM_CUSTOM);
But the OnFileNewType1() function was never called. Can anyone please guide me which point I am missing ?