If you are going to ask the same question in multiple newsgroups,
please post to all at once so everyone can see/participate in the
whole discussion. I provided an answer in
comp.os.ms-windows.programmer.win32
On 23 Mar 2006 03:25:55 -0800, kuc...@gmail.com wrote:
>I wrote a hook for MSN Messenger, I'm catching context menu opening
>(WM_INITMENUPOPUP), get menu handle (HMENU) and add my own menu items.
>>From version 8.0 MSN Messenger stopped to send WM_INITMENUPOPUP.
>Maximum I can get - I'm catching WM_ENTERIDLE with parameter MSGF_MENU
>- so I get a handle of the window containing this popup menu. I've
>checked - it's the correct window (tried to call DestroyWindow and it
>worked correctly). Now the question - how can I get menu handle (HMENU)
>if I know its container window handle?
>P.S. People told me that version 8.0 was written in C# and uses WinFX -
>maybe somebody is familiar with it and can tell me if there's a chance
>to get menu handle by using WinFX functions?
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com