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

CXTPCommandBar

 Post Reply Post Reply
Author
Message
simus View Drop Down
Groupie
Groupie


Joined: 08 July 2005
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote simus Quote  Post ReplyReply Direct Link To This Post Topic: CXTPCommandBar
    Posted: 03 June 2008 at 8:21am
Hi,

I have a CommandBar that is arranged as followed

File              Test
  &New            &SubTest
  &Open                 subsubTest1
                              subsubTest2

What I would like to do is to hide the &SubTest control depending a registry value. But the &SubTest have no IDs only subsubTest1 have an ID.

So the code I'm loking for is how to get the parent control of subsubTest1 from the whole command bar and then hide it.

Thanks
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: 03 June 2008 at 9:22am
Hi,

There is trick to assign some id for submenus. in menu editor change "&SubTest" to "SubTest\t100" now you can add Update Handler for id = 100 and hide it.
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.062 seconds.