WM_MENUSELECT |
Post Reply |
Author | |
jitu
Newbie Joined: 29 April 2005 Location: Germany Status: Offline Points: 21 |
Post Options
Thanks(0)
Posted: 29 April 2005 at 9:39am |
I am not getting WM_MENUSELECT message if i create a menubar with CXTPMenuBar. Pl. see the creation process below. CXTPMenuBar* pMenuBar = pCommandBars->SetMenu( Can you pl. help me out on how to activate this message when i click on the menu item? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
The corresponded message for CommandBars is WM_XTP_CONTROLSELECTED:
// BEGIN_MESSAGE_MAP(CMainFrame, CMDIFrameWnd) // //{{AFX_MSG_MAP(CMainFrame) // ON_MESSAGE(WM_XTP_CONTROLSELECTED, OnControlSelected) // //}}AFX_MSG_MAP // END_MESSAGE_MAP() // // LRESULT CMainFrame::OnControlSelected(WPARAM wParam, LPARAM lParam) // { // UNUSED_ALWAYS(lParam); // CXTPControl* pControl = (CXTPControl*)wParam; // // return 0; // }
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |