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 General Discussion » How to know how many CExtControlBar is visible Collapse All
Subject Author Date
mai mike Aug 9, 2008 - 8:46 AM

Dear Technical team,

I have created 5 CExtControlBar in my application. such as bar1, bar2....bar5.

But now only three bars(bar1 , bar2 and bar5) are visible on the screen. The others are hided.

Of course I can show out other bars according to the requirement.

How can I know how many  and which bars is visible?

Do any motheds I can use to get this information?


Now only three bars(bar1 , bar2 and bar5) are visible on the screen.

I want to know there are 3 bars is visible. and they are bar1, bar2 and bar5.

How can I do it?

Thank you in advance.

Best regards

Mike Mai


Technical Support Aug 11, 2008 - 12:18 PM

The CControlBar::IsVisible() method returns the visible state of any MFC or Prof-UIS control bar. The CFrameWnd::m_listControlBars property contains a list of all the control bar windows created inside the main frame window. But this list also includes pointers to dock bars and inner control bar containers which are both also kind of control bars. So, for ease of use you can manage your own list of control bars.