Professional UI Solutions
Site Map   /  Register


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 Tech Support » How do I hide a control in status bar? Collapse All
Subject Author Date
Chun Pong Lau Jul 27, 2008 - 10:23 PM

Dear support team,

How do I completely hide an control in status bar created by CExtStatusControlBar::SetPaneControl(...) in running time (i.e. after initialization)?


Chun Pong

Technical Support Jul 30, 2008 - 4:23 AM

It seems you just forgot to invoke the CExtStatusControlBar::RepositionControls() method.

Technical Support Jul 28, 2008 - 12:19 PM

You can remove a status pane by using the CExtStatusControlBar::RemovePane() method. Then you can insert a status pane again using CExtStatusControlBar::AddPane(). By using the CExtStatusControlBar::SetPaneControl() method, you can attach any window created inside the status bar to a status pane. If the bAutoDestroy parameter of the CExtStatusControlBar::SetPaneControl() method is true, the CExtStatusControlBar::RemovePane() method destroys the window attached to the status pane. If it’s false, the attached window will simply be hidden.

Chun Pong Lau Jul 28, 2008 - 4:26 PM

No. the ways you suggested is NOT working.

I SetPaneControl() with bAutoDestroy = false then RemovePane()  then AddPane() again. It shows up again but there are space left in the old position of the control bar in the status bar.