Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - WM_MENUSELECT
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

WM_MENUSELECT

 Post Reply Post Reply
Author
Message
jitu View Drop Down
Newbie
Newbie
Avatar

Joined: 29 April 2005
Location: Germany
Status: Offline
Points: 21
Post Options Post Options   Thanks (0) Thanks(0)   Quote jitu Quote  Post ReplyReply Direct Link To This Post Topic: WM_MENUSELECT
    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(
        _T("Menu Bar"), IDR_TOOLBATYPE);
    if(pMenuBar == NULL)
    {
        TRACE0("Failed to create menu bar.\n");
        return -1;      // fail to create
    }

 Can you pl. help me out on how to activate this message when i click on the menu item?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 May 2005 at 1:09am

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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.