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 » CExtContorlBar Question Collapse All
Subject Author Date
tera t Aug 19, 2008 - 12:42 AM


1, I want to make CExtContorlBar by non-display.

2, In addition, I want you to teach a called virtual function when it was displayed for the first time

Technical Support Aug 21, 2008 - 1:28 PM

All the Prof-UIS control bars are created through invocation of the CExtControlBar::Create() method which is declared as:

virtual BOOL Create(
            __EXT_MFC_SAFE_LPCTSTR lpszWindowName,
            CWnd * pParentWnd,
            DWORD dwStyle =
The WS_VISIBLE style is present in the default parameter value. You can create the bar without this style to make it invisible. You can also simply hide the bar at the end of the CMainFrame::OnCreate() method using the CFrameWnd::ShowControlBar() method.

Technical Support Aug 19, 2008 - 11:47 AM

You can hide a control bar using the CFrameWnd::ShowControlBar() method. But first, you should check whether the bar is auto-hidden using the CExtControlBar::AutoHideModeGet() method. The auto-hidden control bars can be switched into the simple hidden state using the CExtControlBar::AutoHideModeSet() method. Then you can set the CExtControlBar::m_bAppearInDockSiteControlBarPopupMenu() property to false() if you want to hide the command displaying the control bar from all the built-in context menus displayed by Prof-UIS over frame window areas.

tera t Aug 21, 2008 - 2:32 AM


When I did Create of bar.

I want to make bar non-display.

Is it impossible?