G
Guest
Looking for a good example of how to show a popup menu in response to the user right-clicking on the icon in the 'taskbar notification area' (tray). I'm fine with creating the icon and responding to its messages. It's the showing of the popup menu I can't do
I've tried it using TrackPopupMenu function, but it returns 0 and GetLastError when called immediately after it returns zero aswell. The menu passed to TrackPopupMenu was got from GetSubMenu(hMenuMain, 0) (where hMenuMain was got by calling LoadMenu(hInst, IDR_MENU), and IDR_MENU is the only menu resource in the application, and it has only got one 'sub' menu )
Can anyone lend any assistance
Thank
I've tried it using TrackPopupMenu function, but it returns 0 and GetLastError when called immediately after it returns zero aswell. The menu passed to TrackPopupMenu was got from GetSubMenu(hMenuMain, 0) (where hMenuMain was got by calling LoadMenu(hInst, IDR_MENU), and IDR_MENU is the only menu resource in the application, and it has only got one 'sub' menu )
Can anyone lend any assistance
Thank