Jan 2, 2001 #1 Dominus Programmer Nov 24, 2000 9 BR How to create a popup menu from the status area of the windows task bar, using SDK.
Jan 3, 2001 #2 ascht Programmer Sep 22, 2000 43 CH Create with tthe Wizard ON_WM_CONTEXTMENU. then if( -1 == point.x && -1 == point.y ) { // Context Menu Button on Keyboard pressed } else { // set Selection to where the mouse points } // Depending the Position on screen load different popups CMenu menu.LoadMenu(IDR_CONTEXT_APP); Upvote 0 Downvote
Create with tthe Wizard ON_WM_CONTEXTMENU. then if( -1 == point.x && -1 == point.y ) { // Context Menu Button on Keyboard pressed } else { // set Selection to where the mouse points } // Depending the Position on screen load different popups CMenu menu.LoadMenu(IDR_CONTEXT_APP);
Jan 4, 2001 #3 ascht Programmer Sep 22, 2000 43 CH Sorry I've something forgotten: CMenu* pPopup = menu.GetSubMenu(0); ASSERT(pPopup != NULL); pPopup->TrackPopupMenu(TPM_RIGHTBUTTON | TPM_LEFTALIGN, point.x, point.y, AfxGetMainWnd()); // route commands through main window Upvote 0 Downvote
Sorry I've something forgotten: CMenu* pPopup = menu.GetSubMenu(0); ASSERT(pPopup != NULL); pPopup->TrackPopupMenu(TPM_RIGHTBUTTON | TPM_LEFTALIGN, point.x, point.y, AfxGetMainWnd()); // route commands through main window