Print Page | Close Window

GetMenuDefaultItem bug

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


Topic: GetMenuDefaultItem bug
Posted By: dalle
Subject: GetMenuDefaultItem bug
Date Posted: 13 February 2007 at 3:04am
I found a "style bug" in the old source 9.60, I don't know if it is fixed in later releases. The arguments to GetMenuDefaultItem is swapped in CXTPControls::AddMenuItem and CXTPMenuBar::CXTPControlMDISysMenuPopup.

::GetMenuDefaultItem(pMenu->m_hMenu, GMDI_USEDISABLED, TRUE)

should be:

::GetMenuDefaultItem(pMenu->m_hMenu, TRUE, GMDI_USEDISABLED)

(It really does not matter as GMDI_USEDISABLED == 0x0001 and TRUE == 1, but it generates warnings when I compile the code in my head. )



Replies:
Posted By: Oleg
Date Posted: 13 February 2007 at 7:41am
Hi,
 
Thanks, it's still here. Good catch!
 
Think, we previously used CMenu::GetDefaultItem where these parameters are switched.


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