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

Issue in Menu

 Post Reply Post Reply
Author
Message
KumarCJ View Drop Down
Groupie
Groupie
Avatar

Joined: 02 April 2007
Location: India
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote KumarCJ Quote  Post ReplyReply Direct Link To This Post Topic: Issue in Menu
    Posted: 18 September 2007 at 8:53am
Hi,
 
 
To display, "Window List" under window menu, I had added Window List with ID  35000. This is working fine.
 
But to display "More Window" option in "Window" menu, when 1 or more view are open. What i should do?
 
I had implemented "More Window" option as given in Samples\UserInterface\GUI_VisualStudio
 
But the Issue is that, When all the view are closed, the "More Window" is visible in Window menu.
 
Similar to "Window List", is there any predefind ID For "More Window"?
 
So that "More Window" should visible when view are opend and it should not be visible when no view are opened.
 
Thanks,
KumarCJ.
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: 18 September 2007 at 1:30pm
Hi,
 
Just add update handler for this id and show/hide control when you need:
 
CXTPControl* pControl = CXTPControl::FromUI(pCmdUI);
 if (pControl)
 {
  pCmdUI->SetVisible(bVisible);
 }
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.047 seconds.