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 General Discussion » I sent small test project. Collapse All
Subject Author Date
tarou iiyama Jul 21, 2006 - 2:07 AM

Hello

I sent a source.
Would not there be the funny point that must not do it?

If there is advice. I ask for an answer.

Thank you.

tarou iiyama Jul 21, 2006 - 8:52 PM


Hello

I forwarded a file.
I am sorry to send it many times.

A program source.
Will not there be no problem?

Technical Support Jul 24, 2006 - 8:20 AM

We analyzed your project and added only one line which recomputes the frame layout after changing the location of the control bar:

void CDialog1::OnCancel() 
{
    CMainFrame * pMainFrame = (CMainFrame *)AfxGetMainWnd();
    CSizeFixControlBar *pMyCBar = &pMainFrame->m_wndResizableBar3;
    pMyCBar->iPosInfo_ ( m_pCBarPosInfo );
 
// THIS LINE WAS ADDED
pMyCBar->GetParentFrame()->RecalcLayout();
// THIS LINE WAS ADDED
}

tarou iiyama Jul 28, 2006 - 2:06 AM

Hello.

Thank you for an answer.



To examine a docking state.
Does it mean that this technique is forgiven?

iFloat = 0;
if( pFrame->IsKindOf( RUNTIME_CLASS( CFrameWnd ) ) )
{
iFloat = 0;
}
if( pFrame->IsKindOf( RUNTIME_CLASS( CExtMiniDockFrameWnd ) ) )
{
iFloat = 1;
TRACE("");
}

if( m_pDockBar->IsKindOf( RUNTIME_CLASS( CDockBar ) ) )
{
iRet=0;
}
if( m_pDockBar->IsKindOf( RUNTIME_CLASS( CExtDockBar ) ) )
{
iRet=1;
}
if( m_pDockBar->IsKindOf( RUNTIME_CLASS( CExtDockDynBar ) ) )
{
iRet=2;
}
if( m_pDockBar->IsKindOf( RUNTIME_CLASS( CExtDockDynTabBar ) ) )
{
iRet=3;
}
return iRet;


Technical Support Jul 29, 2006 - 11:08 AM

Your code is correct and covers all the possible states.