Setting bp on the message map

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I'd want to intercept all messages going thru the map of my application
(MFC)...

BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd)
//{{AFX_MSG_MAP(CMainFrame)
* ON_WM_CREATE()
* ON_COMMAND(ID_FORMVIEW, OnFormView)
* meaning a bp on it.

like WM_CREATE, WM_DBLCLICK.... etc
When running the application and seeing the effect of this, I found out that
all bps were disabled and the pointer was pointing to END_MESSAGE()
I have tried to recompile the project, but the same thing going on as
usual... Does anyone have any clue?


.



Relevant Pages