Microsoft KB Archive/883790

= Problems may occur when applications use the CreateMDIWindow function to create MDI child windows =

Article ID: 883790

Article Last Modified on 5/18/2007

-

APPLIES TO


 * Microsoft Platform Software Development Kit-January 2000 Edition

-



SYMPTOMS
The current Microsoft Platform Software Development Kit (SDK) documentation for the CreateMDIWindow function says that &quot;(u)sing the CreateMDIWindow function is similar to sending the WM_MDICREATE message to an MDI client window, except that the function can create an MDI child window in a different thread, while the message cannot.&quot;

Applications that use the CreateMDIWindow function to create a multiple-document interface (MDI) child window on a thread other than the thread that owns the MDICLIENT window may experience problems with the way that MDI manages the client windows. The following problems may occur:
 * The list of windows on the frame's window menu may not be complete.
 * The management of the MDICLIENT scroll bars may not be consistent when you move or size MDI child windows.
 * The keyboard cannot be used to move between the menus in the frame window and an MDI child window.



RESOLUTION
To resolve this problem, applications should not call the CreateMDIWindow function to create MDI child windows on a thread other than the thread that owns the frame window and the MDICLIENT window.

