Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CommandBars Update Error
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CommandBars Update Error

 Post Reply Post Reply
Author
Message
l.arantes View Drop Down
Newbie
Newbie
Avatar

Joined: 10 October 2011
Location: Brazil
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote l.arantes Quote  Post ReplyReply Direct Link To This Post Topic: CommandBars Update Error
    Posted: 10 October 2011 at 2:36pm
Hello Guys,
 
I need to hide the icons and groups of my Commandbars when the user don´t have the permission to use some resources of my application, I am setting the control.visible = False. But when I hide they and, then I access my application with another user that have the permission to use these resources, I set the control.visible = true, but it´s not working, because the commandbars_update isn´t recognizing the controls that had been hidden.
 
Exemple:
 
After hide the controls:
Existing Controls   -> 1,2,3
Hidden Controls    -> 2
What the Commandbars_Update is recognizing   -> 1,3
                                                                                                         
I need to set the control2.visible = true but the Commandbars_Update is not recognizing it.
 
 
My questions:
 
1 - How can I solve this error?
2 - How can I reset the CommandBars' componentst to the default state?
 
Thanks. Smile
 
P.S: Sorry about my english errors.
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.172 seconds.