GM_registerMainWindow

Registers a user main window with the Game Framework

Declaration

void MGLAPI GM_registerMainWindow(MGL_HWND
hwndMain)

Prototype In

gm/gm.h

Parameters

hwndMain | Handle to the main window for the application

Description

This function registers a user main window with the Game Framework. The primary purpose of this function is to allow your main game code to do the creation of the main window that is used by the Game Framework, instead of letting the Game Framework libraries do it for you. This is mostly to support integrating the Game Framework code with existing game code that already does window creation and message handling.

Note that you should only call this function after you have called GM_init to initialize the Game Framework.

Note: If you use this function to register a main window, do not use the GM_registerEventProc function to register your window procedure with the Game Framework!!

Note: This function is only available in the Windows version of the Game Framework.

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com