|
-
May 28th, 1999, 03:25 PM
#1
Disable Toolbar Button
I am attempting to temporarily disable a toolbar button from within my application.
I tried this...
CToolBarCtrl& toolbar = m_wndToolBar.GetToolBarCtrl();
toolbar.EnableButton(ID_NEXT, FALSE);
However, it only disables the button while still within the scope of that function.
As soon as that function returns the button is enabled again.
I am sure that I am missing something simple, but I can't figure out what exactly.
What do I need to do to force the button to be disabled until I actually want
it enabled again?
Please help!!!
Thanks,
Kyle
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|