Print Page | Close Window

CXTPStatusBar and dynamic menus

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=2931
Printed Date: 09 November 2025 at 12:38am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPStatusBar and dynamic menus
Posted By: hpesata
Subject: CXTPStatusBar and dynamic menus
Date Posted: 22 September 2005 at 10:57am
Hi!

XTP 9.70

I am using a dynamic menu with my CXTPFrameWnd, loaded from an XML-file.
I first create an MFC menu and attach it to a CXTPMenuBar. I am also using a CXTPStatusBar and I would like to display text for current selected menu items withn my statusbar (as any standard MFC app does). I tried to override WM_SELECTMENU and use the CFrameWnd-mechanism via updating the statusbar within WM_ENETRIDLE, but WM_SELECTMENU isnt called for the XTP menu.

how can I accomplish this with XTP menus ?

thanx in advance!

regards,
Hans




Replies:
Posted By: Oleg
Date Posted: 26 September 2005 at 7:02am

Catch WM_XTP_CONTROLSELECTED message.

wParam = (CXTPControl*)



-------------
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