Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dockable windows

Status
Not open for further replies.

EvanED

Programmer
Joined
Jul 10, 2002
Messages
2
Location
US
I'm working with MFC in VC++ 6.

I'd like to make the main window (class derived from CFrameWnd) have child windows (in concept; not necessarily in implementation) with options and such in it. The child windows should be able to dock at the sides of the main window or float free, in much the same way as the output window and the workspace window (and the graphics palette when working in the resource editor) work in VC++. (The look I'm going for is more along the line of the workspace. properties, and control windows in Visual Basic.)

Any help on how to accomplish this would be appreciated.

So far I've tried several combinations of child window/not child window with a class both of CMiniFrameWnd and a derived class as a member variable of the main window, running the create function in the OnCreate handler of the main window. If the WS_CHILD is in there, it asserts; if not, it exits with memory leaks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top