MDI help

MDI helps you to have multiple windows inside a window.
You should only make one client per game.

Real API_MDI_Init ();

This function enables MDI usage.

Return value:
Returns true (1) when succeeded, or false (0) otherwise.
Real API_MDI_GetFocus ();

This function returns the MDI window handle that has the focus.

Return value:
Returns the window handle.
Real API_MDI_CreateClient (Real Window Handle, Real Menu Handle, Real Check Slot, Real X, Real Y, Real Width, Real Height);

This function adds a MDI client into a window.
The menu display the names of the MDI windows.
You can enter a check slot number to check the window.
You can leave argument3 till argument7 to zero (0) to use default values.

Return value:
Returns the MDI client window handle.
Real API_MDI_CreateWindow (Real Client Handle, String Title, Real Width, Real Height);

This function creates a new child window.
The client handle must be a value returned from API_MDI_CreateClient.

Return value:
Returns the child window handle.

Example code:

API_MDI_Init (); // Initialize MDI functionality
Client = API_MDI_CreateClient (Win,Menu_Window,1); // Creates a client using Menu_Window and check number 1
Window = API_MDI_CreateWindow (Client,"MDI Child Window",400,300); // Creates a child window



Return to help index