The MDI Frame Window

The MDI frame window is responsible for creating the MDI client window, usually during processing of the WM_CREATE message. You create the MDI client window using the preregistered window class MDICLIENT as shown in Listing 27.3. The MDI client window will dynamically alter one of the pop-up menu items in the frame window's menu bar, so you must pass the menu handle for the pop-up menu that the MDI client window is to alter as the final parameter to the CreateWindowEx function. For more detailed information on how the MDI client window alters this pop-up menu, refer to "Menus in MDI Applications" later in this chapter.

Code Listing 27.3. Creating the MDI Frame Window
 HWND hWndClient = NULL; // An ID that is different than ...

Get Microsoft Windows 2000 API SuperBible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.