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 |
|
Wilhelm Falkner
|
Aug 25, 2006 - 5:51 AM
|
Hello, is it possiblem to insert CFrameWnd inside of CExtControlBar? Do you have some sample code?
TIA Willi
|
|
Wilhelm Falkner
|
Aug 25, 2006 - 6:11 AM
|
P.S. It is an SDI Application
|
|
Technical Support
|
Aug 25, 2006 - 7:09 AM
|
Unfortunately we have no such a ready-to-use sample, but it is not difficult to create a CFrameWnd window as a child of any other window and use dockable bars in the child frame. You should use the CWnd::Create() method for creating the child frame and specify the WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS standard window style, the window class should be registered with the CS_DBLCLICKS|CS_HREDRAW|CS_VREDRAW standard window class styles and NULL background brush. You should use a dynamic instance of the frame window created with the C++ new operator and do not delete this instance because the CFrameWnd::PostNcDestroy() virtual method invokes the delete this code. You can create a startup project with the required configuration, create the frame window as a child of a control bar window and send this project to us if you encounter any difficulties.
|
|