overriding wndproc WM_NOTIFY
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
i am overriding wndproc an handling the wm_command and wm_notify message appropriately. in the case statement of wm_notify this is what i have case WM_NOTIFY: nmhdr = (NMHDR*) lParam; notificationId = nmhdr->code; if(notificationId == NM_CLICK) { AfxMessageBox(_T("CLICKED")); return FALSE; } else if(notificationId == NM_DBLCLK) { AfxMessageBox(_T("double CLICKED")); return FALSE; } ... .... //more if else goes here else { // call default } the flow does enter this switch statement but never invokes the appropriate handler. When i tried to get the value of the notificationId it shows some junk value though nmhdr is properly initialzed and the controlid that generated the message is correct. what am i missing? thanks