Print Page | Close Window

WM_MENUSELECT

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=2165
Printed Date: 27 September 2024 at 9:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: WM_MENUSELECT
Posted By: jitu
Subject: WM_MENUSELECT
Date 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?




Replies:
Posted By: Oleg
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net