Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion �� Regarding CExtControlBar's "AutoHide" button Collapse All
Subject Author Date
Anil Siddhpura Jul 29, 2009 - 12:15 AM

Hi,

There are some "AutoHide", "Close" and some other buttons on a window if it is created as a chield of CExtControlBar.

Now, as per my requirement i am not showing these buttons on a dockable window. But I want the effects of "AutoHide" button. Means when you click on "AutoHide" button the window is shown & when you click on it again the window is hide.

How to do that?

Thanks

Technical Support Jul 30, 2009 - 7:48 AM

You wrote:

How can i attach an an image in this post?
I would like to explain my problem through a bitmap image.


It should not be difficult. If you have a hosting, just upload the image to that host and then reference the image from this forum, like:

<img src="http://www.yourhostxyz.com/image.png"/>


Please note you should turn on the Turn HTML editor off next to this forum’s message editor on the left. This allows you to type in plain html and put the above mentioned reference.

If you do not have a hosting, put the image on some free hosting like http://imageshack.us/ and reference it from this forum.

Anil Siddhpura Jul 30, 2009 - 6:09 AM

Hi,

How can i attach an an image in this post?

I would like to explain my problem through a bitmap image.

Technical Support Jul 29, 2009 - 11:02 AM

The CExtControlBar window is designed as a container for only one child window. You can create any type of window as a child of the CExtControlBar window and control bar will simply resize its child to cover entire control bar’s client area. That’s all control bar do with its single child window. The control bar does not know any details about the type of its child window.

You can create some buttons inside your window created as the control bar’s child. You can make these buttons auto hiding or closing/hiding the control bar. If your application is based on the dynamic resizable control bars, then you should use the CExtDynamicControlBar::BarStateSet() / CExtDynamicControlBar::BarStateGet() methods for detecting and changing state of control bar. If you are using simple resizable control bar, then the CExtControlBar::AutoHideModeGet() method should be invoked first of all for checking whether the bar is auto hidden. The state of auto hidden bar should be changed to simple docked or simple hidden state with the CExtControlBar::AutoHideModeSet() method. If the bar is not auto hidden, then you should use the CControlBar::IsVisible() method for checking whether the bar is displayed and the CFrameWnd::ShowControlBar() method for displaying or hiding the bar.