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 wnat to make rayout when App run at first Collapse All
Subject Author Date
simlab simlab Jul 13, 2006 - 2:59 AM


How can I make rayout windows made by "CExtControlBar"...

Andre ki Jul 13, 2006 - 7:53 PM

And Can I rayout "toolbar" ?

I want to replace horizontal. but these place vertical...

What can I do?

Technical Support Jul 14, 2006 - 12:35 PM

If you need to dock a toolbar horizontally, you can find many places in our samples that show how to do this. Many of our samples are frame-based applications that have toolbars docked horizontally. Please find the following line:

DockControlBar(&m_wndToolBar);
This line docks the m_wndToolBar toolbar horizontally. If this is not what you mean, please let us know. In this case, some screenshots would be helpful.

Andre ki Jul 13, 2006 - 7:24 PM

sorry. I mean a "tap" style not a "top’ style... like a VS 7.1 tap control.

Technical Support Jul 14, 2006 - 12:16 PM

What do you mean by "tap control". Would you send us some screenshots with this control?

Technical Support Jul 13, 2006 - 1:32 PM

By default, the control bar layout is not automatically saved to the registry. Saving/Loading to/from the registry happens when you use the CExtControlBar::ProfileBarStateSave/CExtControlBar::ProfileBarStateLoad methods. When CExtControlBar::ProfileBarStateLoad method returns false, this means that the saved state does not exist (i.e. when you start your application for the first time) and you should perform the initial docking for your control bars.

 if( ! CExtControlBar::ProfileBarStateLoad(
   this,
   pApp->m_pszRegistryKey,
   pApp->m_pszProfileName,
   pApp->m_pszProfileName,
   &m_dataFrameWP
   )
  )
 {
  // MAKE THE INITIAL LAYOUT HERE
 }


Andre ki Jul 13, 2006 - 3:34 AM

For ex)

Some Windows are close state at App run.

&

Some Windows place at Tap style.

Technical Support Jul 13, 2006 - 1:27 PM

If you need to make some control bars invisible at startup, just invoke the following line:

ShowControlBar(&m_wndResizableBar0,FALSE,TRUE);
To dock a control bar at the top, please use this:
m_wndResizableBar0.DockControlBar(AFX_IDW_DOCKBAR_TOP, 1,this);