Toolbars status
-
I cant' figure how to show hidden toolbars.... Suppose I've a floating toolbar and I close it... if it's the main toolbar, there is a default command (ID_VIEW_TOOLBAR), but if I've many toolbars I can't change (nor get) the status of the others.... I tryed using "mytoolbar.ShowWindow(SW_SHOW)", but I can't get nay result.... someone has an idea?
-
I cant' figure how to show hidden toolbars.... Suppose I've a floating toolbar and I close it... if it's the main toolbar, there is a default command (ID_VIEW_TOOLBAR), but if I've many toolbars I can't change (nor get) the status of the others.... I tryed using "mytoolbar.ShowWindow(SW_SHOW)", but I can't get nay result.... someone has an idea?
Take a look at the ShowControlBar global function, that should do it. Example use: ::ShowControlBar(&mytoolbar, /* true = show, false = hide */ true, /* true = delay showing/hiding it, false = show/hide is now */ false); This function call will show the toolbar mytoolbar without delay. Check MSDN for more details, though this is a pretty simple function with only three parameters. Tell me if it works! Hope that helps! Sincerely, Alexander Wiseman Est melior esse quam videri It is better to be than to seem
-
Take a look at the ShowControlBar global function, that should do it. Example use: ::ShowControlBar(&mytoolbar, /* true = show, false = hide */ true, /* true = delay showing/hiding it, false = show/hide is now */ false); This function call will show the toolbar mytoolbar without delay. Check MSDN for more details, though this is a pretty simple function with only three parameters. Tell me if it works! Hope that helps! Sincerely, Alexander Wiseman Est melior esse quam videri It is better to be than to seem
Thanks, Yes, it works! But now I can't find a command to GET the control status...
-
Thanks, Yes, it works! But now I can't find a command to GET the control status...
You mean to get whether the control is hidden or visible? Try: mytoolbar.IsWindowVisible(), that should work. Otherwise, you might try to keep a variable to track the status of the control bar. Hope that helps! Sincerely, Alexander Wiseman Est melior esse quam videri It is better to be than to seem
-
You mean to get whether the control is hidden or visible? Try: mytoolbar.IsWindowVisible(), that should work. Otherwise, you might try to keep a variable to track the status of the control bar. Hope that helps! Sincerely, Alexander Wiseman Est melior esse quam videri It is better to be than to seem
Yes, that's! I feel idiot... it was so obvious..... and I spent about 3-4 hours looking for such function in MSDN :) Thanks!
-
Yes, that's! I feel idiot... it was so obvious..... and I spent about 3-4 hours looking for such function in MSDN :) Thanks!
Spending 3-4 hours trying to find a function, sounds like me on a good day ;P Glad I could help! Sincerely, Alexander Wiseman Est melior esse quam videri It is better to be than to seem