Click to See Complete Forum and Search --> : MDI Windows


Guidosoft
March 24th, 2006, 10:23 AM
Is there a tutorial of MDI Interfaces?

What does CreateMDIWindow do create a frame or a client?

Does DefFrameProc get called from the client?

The client is the child window inisde the frame right?

kkez
March 24th, 2006, 11:28 AM
Is there a tutorial of MDI Interfaces?
http://www.winprog.org/tutorial/app_four.html

What does CreateMDIWindow do create a frame or a client?
It doesn't create a frame neither a client, but a mdi child window. From MSDN:
Using the CreateMDIWindow function is similar to sending the WM_MDICREATE (http:///library/en-us/winui/winui/windowsuserinterface/windowing/multipledocumentinterface/multipledocumentinterfacereference/multipledocumentinterfacemessages/wm_mdicreate.asp) message to an MDI client window

Does DefFrameProc get called from the client?
The frame (your main window) must call that function, the client window is a child window that does not even (at least it should not) have a procedure.

The client is the child window inisde the frame right?
Yes :) and the mdi child windows are child of the client window.

Guidosoft
March 24th, 2006, 01:10 PM
Where do the toolbars go on the frame or the client?

pengch
March 25th, 2006, 02:40 AM
You can try WTL, it'll automatic to created the MDI windows frame.

kkez
March 25th, 2006, 07:46 AM
On the frame. The MDI client window is just a sort of container for MDI children window.