WM_INITMENU is not raised for context menus

  • Thread starter Thread starter Academia
  • Start date Start date
A

Academia

I can't tell for sure but debugging seems to indicate that WM_INITMENU is
not raised in WndProc for context menus, only for main menus.

Do you happen know if that is true?



Thanks in advance for any info



PS At one time I thought it wasn't raised on user controls, only in forms.
But now I suspect the above is more accurate.
 
I can't tell for sure but debugging seems to indicate that WM_INITMENU is
not raised in WndProc for context menus, only for main menus.

Do you happen know if that is true?

No it's not true. You can easily verify that the message is send with
Spy++. Are you sure you're lookin at the right WndProc?


Mattias
 
Mattias Sjögren said:
No it's not true. You can easily verify that the message is send with
Spy++. Are you sure you're lookin at the right WndProc?
Maybe that's my proplem If the usercontrol is on a form does the message
occur in WndProc of the control, form or both?

Don't know how to use spy++. Is that somethig I can learn in a few hours of
does it require days to get started?


Thanks a lock
 
Back
Top