Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > General Discussion
  New Posts New Posts RSS Feed - CMenu::GetMenuState not correct b4 menu is drawn
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CMenu::GetMenuState not correct b4 menu is drawn

 Post Reply Post Reply
Author
Message
jason.g.havok View Drop Down
Newbie
Newbie


Joined: 24 November 2009
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote jason.g.havok Quote  Post ReplyReply Direct Link To This Post Topic: CMenu::GetMenuState not correct b4 menu is drawn
    Posted: 24 November 2009 at 9:54pm
I'm using some rather old Codejock software, the Xtreme Toolkit for MFC.

I have a situation where I need to determine the checked/unchecked state of a menu item. For some reason, the state always reports unchecked unless I allow the menu to be drawn (I navigate down to it). I don't click the item (which naturally would check it), I simply allow it to be rendered.

After this point, the menu item returns the proper checked state.

Any ideas/leads I can pursue?

Thanks,
Jason G.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 25 November 2009 at 4:58am
Hi,
 
You have wrong logic here.  Your application have hold state for commands and update GUI accordingly.
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.156 seconds.