![]() |
graying controls |
Post Reply ![]() |
Author | |
c_koerber ![]() Newbie ![]() Joined: 08 July 2003 Status: Offline Points: 4 |
![]() ![]() ![]() ![]() ![]() Posted: 08 July 2003 at 6:56am |
I want to disable some controls and want their respective icons to become grey and unpressable, i.e. not responsive. Neither SetVisible(FALSE) nor SetEnabled(FALSE) seem to do anything at all. Any suggestions? BTW, is their any documentation beside the sample code and the help files? regards, Christian
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
you must add ON_UPDATE_COMMAND_UI handler: ON_UPDATE_COMMAND_UI(ID_YOURCOMMAND, OnUpdateYourCommand) void CMainFrame::OnUpdateYourCommand(CCmdUI* pCmdUI)
|
|
![]() |
|
BruceW ![]() Newbie ![]() Joined: 05 April 2006 Location: United Kingdom Status: Offline Points: 21 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I have the same problem. I would like to remove an item from a menu (though not delete it), and so have tried using SetVisible( FALSE ). However it appears to have no effect. I cannot use a command handler as I need to do this before the menu is shown, and also my menus are dynamic depending on the user selction, thus do not have fixed Ids. Thanks, Bruce. |
|
![]() |
|
BruceW ![]() Newbie ![]() Joined: 05 April 2006 Location: United Kingdom Status: Offline Points: 21 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I have overcome this particular problem, so it is no longer an issue for me. Ta, Bruce. |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |