Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How Can Checked Dynamic Popup menu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How Can Checked Dynamic Popup menu

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


Joined: 06 April 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote leejia Quote  Post ReplyReply Direct Link To This Post Topic: How Can Checked Dynamic Popup menu
    Posted: 06 April 2006 at 4:04am
in createcontrols message,i created any popup menu,I want set some popup menu's state is checked,How can do?
Back to Top
leejia View Drop Down
Newbie
Newbie


Joined: 06 April 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote leejia Quote  Post ReplyReply Direct Link To This Post Posted: 06 April 2006 at 4:09am

everybody here?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

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: 06 April 2006 at 7:43am

use Update handler for changing state.

or call pControl->SetChecked(TRUE); + pControl->SetFlags(xtpFlagManualUpdate);

 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
leejia View Drop Down
Newbie
Newbie


Joined: 06 April 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote leejia Quote  Post ReplyReply Direct Link To This Post Posted: 06 April 2006 at 12:04pm

Thanks for response my question!!!
But I want when user clicked the menu, and set it's checked status,What can i do?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group
Avatar

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: 06 April 2006 at 7:40pm

See any sample from CommandBars folder.

 

example

 

 ON_UPDATE_COMMAND_UI(ID_VIEW_TEXTBELOWICONS, OnUpdateTextBelow) 


void CMainFrame::OnUpdateTextBelow(CCmdUI* pCmdUI)
{
 pCmdUI->SetCheck(TRUE);
}
 

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
leejia View Drop Down
Newbie
Newbie


Joined: 06 April 2006
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote leejia Quote  Post ReplyReply Direct Link To This Post Posted: 06 April 2006 at 8:51pm
thanks!!!I do that success.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0.078 seconds.