Hi *.*,

using a CWP-Hook and evaluating the WM_INITMENUPOPUP message, I get the
handle of the popup menu in wParam. But sometimes, no WM_INITMENUPOPUP
message is sent, but only WM_CONTEXTMENU.
Sample: Win2K, device manager, SysTreeView32, right mouse click.
Then wParam is the window handle where the mouse was clicked; a menu handle
is not given.
The window structure looks as follows:
Class\Caption/Text (in german)
mmcmainframe\geräte-manager
mdiclient\notext
mmcchildfrm\geräte-manager auf lokalem computer
afxframeorview42u\notext
afxframeorview42u\notext
systreeview32\notext

When I call hmen = GetMenu(hwnd) for each of these windows, I'll get a
nonzero value except of the first and last window, but checking this value
using IsMenu(hmen) always returns False :-(.
How can I get the handle of the Context Menu???

Juergen.