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

GetMenuDefaultItem bug

 Post Reply Post Reply
Author
Message
dalle View Drop Down
Newbie
Newbie


Joined: 13 February 2007
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote dalle Quote  Post ReplyReply Direct Link To This Post Topic: GetMenuDefaultItem bug
    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. )
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
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.031 seconds.