WM_INITMENU is not raised for context menus

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.
 
M

Mattias Sjögren

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
 
A

Academia

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top