Hi,
I’ve set an icon on the systray and i’m trying to make appear a popup menu when i right click the icon, with TrackPopupMenu().
Code:
menu = LoadMenu(hInstancegl,MAKEINTRESOURCE(IDSTMENU)); SetForegroundWindow(hWndDlg);
TrackPopupMenu(menu,TPM_CENTERALIGN|TPM_VCENTERALIGN|TPM_RETURNCMD|
TPM_RIGHTBUTTON,GET_X_LPARAM(lParam),GET_Y_LPARAM(lParam),0,hWndDlg,NULL);
But the menu (which’s got 2 items) won’t appear correctly. When i right click on the icon, what appears is only a weird thin vertical line at the top of the screen. For the menu, i’ve selected "view as popup" option. Any suggestions please?
Thanks.