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 Tech Support » Auto Hide problem Collapse All
Subject Author Date
Offer Har May 23, 2010 - 7:44 AM

Dear Support,


We auto-hide a couple of control-bars to one of the sides of the main-frame. When we right-click on the auto-hide area, and not on the tabs of the hidden control-bars we get a list of all the names of the hidden control-bars.


However, when choosing any of the items in this menu nothing happen. We need to do one of the two - get rid of this menu, or make it do something.


Thanks,


Ron.

Technical Support May 25, 2010 - 1:38 AM

The menu item click should display the appropriate control bar from the auto hide tabs area using the sliding animation. This is related both for simple and dynamic control bars. We checked this menu is working OK in the MDIDOCVIEW, SDIDOCVIEW, MDI_DynamicBars and SDI_DynamicBars sample applications.
The following lines of code should be present for all your control bars in the message map of the CMainFrame class:

   ON_COMMAND_EX( ID_MY_RESIZABLE_CONTROL_BAR, OnBarCheck )
            ON_UPDATE_COMMAND_UI( ID_MY_RESIZABLE_CONTROL_BAR, OnUpdateControlBarMenu )

The OnBarCheck() and OnUpdateControlBarMenu() methods are provided by the MFC’s CFrameWnd class. But if you are using Prof-UIS resizable control bars with the auto-hiding feature enabled, then you should redefine the OnBarCheck() and OnUpdateControlBarMenu() methods in your CMainFrame class:
void CMainFrame::OnUpdateControlBarMenu(CCmdUI* pCmdUI)
{
            CExtControlBar::DoFrameBarCheckUpdate(
                        this,
                        pCmdUI,
                        false
                        );
}
BOOL CMainFrame::OnBarCheck(UINT nID)
{
            return
                        CExtControlBar::DoFrameBarCheckCmd(
                                    this,
                                    nID,
                                    false
                                    );
}

Please check this.