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 » CExtControlBar at the time of float. Collapse All
Subject Author Date
tarou iiyama Jul 7, 2006 - 4:31 AM

Hello

CExtControlBar at the time of float.
I cannot change Window size in MoveWindows and SetWindowPos.

Will not there be a good method?

Thanking you in advance.

Technical Support Jul 7, 2006 - 10:09 AM

We made a small sample which shows how to specify the position and size of a control bar by using four edit controls. By clicking a button, you can put the control bar into the specified floating position. The CChangeFloatingSizeView::OnButtonFloat() method does all work. Please download the sample from our site.

tarou iiyama Jul 9, 2006 - 8:29 PM

Hello

CExtControlBar at the time of Float.
There is the case that size is not changed of to.

------------------------------------------------------------
>Please download the sample from our site.
I revise one part of sample.
------------------------------------------------------------

m_wndResizableBar.EnableDocking( CBRS_ALIGN_ANY );

if( ! CExtControlBar::FrameEnableDocking( this ) )
{
ASSERT( FALSE );
return -1;
}

m_wndResizableBar.DockControlBarInnerOuter( AFX_IDW_DOCKBAR_LEFT, false );
ˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆ
m_wndResizableBar.ToggleDocking();
ˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆ
------------------------------------------------------------
However, I do resize with a mouse in Float-CExtControlBar.

Then I work well.

Technical Support Jul 10, 2006 - 10:01 AM

The lines marked with a wavy underline in your message do the same as a single call of the CExtControlBar::FloatControlBar() method. The CExtControlBar::ToggleDocking() method can be applied only to control bars docked in the outer areas of the frame window. These control bars include toolbars, panel control bars, the menu bar, and control bars which are configured to use the toolbar’s docking algorithms. The later type is demonstrated in the FixedSizePanels sample where you can see two resizable bars with the IE control inside.

tarou iiyama Jul 10, 2006 - 8:08 PM

Hello

There is a bug.

ttp://profuis0.tripod.com/20060709/SDI2.LZH

(1) Please download the following programs
(2) I build and start.
(3) I push SizeButton.
(4) I make it a Float state.
(5) I finish a program.
(5) I reboot a program.
(6) I push SizeButton.
(7) Is not size of CExtControlBar changed.

tarou iiyama Jul 10, 2006 - 8:20 PM

Hello

A zip version.
It is this.

ttp://profuis0.tripod.com/20060709/SDI2.zip

Technical Support Jul 11, 2006 - 9:16 AM

We downloaded your sample project, compiled and run it. Each time after resizing the control bar and rebooting the application, the size was restored correctly. Here is the compiled version. Please let us know more details about what the problem is.

tarou iiyama Jul 12, 2006 - 6:39 PM

Hello

I cannot defrost it in WinZip9.0.

Is a file broken?

Technical Support Jul 14, 2006 - 8:28 AM

Please download and unzip it again.