Application

The application object. Use Application.instance to obtain it, call initialize() once at startup, then run() to enter the message loop.

Members

Functions

initialize
void initialize()

Initialize common controls and COM, and register the default window class. Idempotent; safe to call before creating any windows.

quit
void quit(int exitCode)

Post a quit request to the message loop with the given exit code.

run
int run()

Run the Win32 message loop until WM_QUIT. Returns the exit code carried by the quit message.

Static functions

instance
Application instance()

The process-wide application instance (created on first access).

Meta