![]() |
GetMenuDefaultItem bug |
Post Reply
|
| Author | |
dalle
Newbie
Joined: 13 February 2007 Status: Offline Points: 5 |
Post Options
Thanks(0)
Quote Reply
Topic: GetMenuDefaultItem bugPosted: 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. ) |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |