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 » Hidden floating windows Collapse All
Subject Author Date
Neville Franks Sep 14, 2003 - 8:43 PM

Hi, When you close an application that has a hiden floating window, then when the application next starts you see the window appear briefly. This is a little disconcerting and it would be nice if it didn’t happen.

Rgds, Neville

Technical Support Sep 18, 2003 - 9:12 AM

Dear Neville,

We cannot confirm this bug.

Maybe you use initialization for your control bars like in the following code snippet:
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
   . . .
   if( !CExtControlBar::FrameEnableDocking(this) )
   {
      ASSERT( FALSE );
      return -1;
   }
   DockControlBar( &m_wndMenuBar, AFX_IDW_DOCKBAR_TOP );
   DockControlBar( &m_wndToolBarStd, AFX_IDW_DOCKBAR_TOP );
   CExtControlBar::ProfileBarStateLoad( . . .
   . . .

If yes, please let your app load the control bar state first. If loading fails, you need to invoke some code to initialize layout of control bars. This technique is not available with MFC control bars, but it is at your disposal when you work with Prof-UIS bars :-) Please see any frame-based sample available within the library:
   . . .
   if( !CExtControlBar::FrameEnableDocking(this) )
   {
      ASSERT( FALSE );
      return -1;
   }
   if( ! CExtControlBar::ProfileBarStateLoad( . . .) )
   {
      DockControlBar( &m_wndMenuBar, AFX_IDW_DOCKBAR_TOP );
      DockControlBar( &m_wndToolBarStd, AFX_IDW_DOCKBAR_TOP );
      . . .
   }
   . . .