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 » CExtTabMdiOneNoteWnd question Collapse All
Subject Author Date
Massimo Germi Apr 24, 2006 - 2:42 AM

Hi,
I have an MDI application with CExtTabMdiOneNoteWnd control in CMainFrame.
In some case active view can switch in full screen mode, there is a method to temporaly hide the all tabs in CExtTabMdiOneNoteWnd ?
I wish to hide tabs when view switch in full screen mode and show its when view is restored in normal state.

Thanks a lot

Technical Support Apr 24, 2006 - 12:21 PM

Just create a CExtTabMdiOneNoteWnd-derived class and implement the OnTabWndSyncVisibility() virtual method in it:

class CYourTabs : public CExtTabMdiOneNoteWnd
{
    virtual void OnTabWndSyncVisibility()
    {
        if( __IS_FULL_SCREEN_MODE__ )
        {
            if( (GetStyle()&WS_VISIBLE) != 0 )
                ShowWindow( SW_HIDE );
            return;
        }
        CExtTabMdiOneNoteWnd::OnTabWndSyncVisibility();
    }
};