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.
Subject |
Author |
Date |
|
Bangjun Lei
|
Oct 16, 2007 - 2:19 PM
|
Dear Sir./Madam.,
How can I implement a toolbar that slides up to disappear from the resides dialog when my mouse leaves the dialog while it slides down to appear when my moue moves into the dialog?
Thanks!
|
|
Technical Support
|
Oct 17, 2007 - 1:19 PM
|
Here is the code that returns the toolbar’s size (in a CSize object) which fits the dialog width: pToolBar->CalcDynamicLayout( -1, LM_HORZ | LM_HORZDOCK ); The toolbar should be created inside a container window that in turn is a child of the dialog window. This container window should always have the width computed as we described above. The returned CSize also contains the desired height of container window. So, the container window will have exactly the same size as its child CExtToolControlBar window and your code should implement a sliding/moving algorithm for this container as you need it.
|
|