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 » Autohide Collapse All
Subject Author Date
Olaf Baeyens Jan 13, 2003 - 7:56 AM

In CMainFrame::OnCreate() I call:
m_wndResizableBarTree.AutoHideModeSet
(TRUE,TRUE,TRUE,TRUE);

But this generates an debug assert error in following code
cmd_t * p_cmd = CmdGetPtr( *pCommands );        if( p_cmd == NULL )
        {
            ASSERT( FALSE );
            bRetVal = false;
// we find some error
            continue;
        }
        p_cmd->StateSetBasic( bOn );

of function CExtCmdManager::cmd_profile_t::SetBasicCommands()

I have a SDI view, how do I make this autohide operational?

olaf Baeyens Jan 15, 2003 - 3:27 AM

I cannot say that I have a very fast response what is supposed to be a priority support. :-(

But I have my sollution, to add automatich tool bar with hide functionality for all your control bars.

First add this just after CExtControlBar::FrameEnableDocking() in de CMainFrame:
----------------
if( !CExtControlBar::FrameInjectAutoHideAreas(this)){
        ASSERT( FALSE );
        return -1;
    }
----------------

And now in you application viaw add this part of the code or your painting gets wierd.

----------------
BOOL CSDIDOCVIEWView::PreCreateWindow(CREATESTRUCT& cs)
{
    // TODO: Modify the Window class or styles here by modifying
    // the CREATESTRUCT cs
     cs.style |= WS_CLIPCHILDREN | WS_CLIPSIBLINGS;

    return CView::PreCreateWindow(cs);
}