#include <mgui/appmain.h>
Public Types | |
| enum | LEGACYINIT { LEGACYINIT_Default = 0x00, LEGACYINIT_NoSetPosition = 0x01, LEGACYINIT_NoSetTitle = 0x02, LEGACYINIT_NoRealize = 0x04, LEGACYINIT_NoAutoSetExit = 0x08, LEGACYINIT_LockShellSize = 0x10, LEGACYINIT_NoDestroyTopOnExit = 0x20 } |
Public Member Functions | |
| const char * | GetCmdParm (int idx) const |
| int | GetCmdParmCount () const |
Static Public Member Functions | |
| CFont * | GetDefaultFont () |
| MDLGPARENT | GetTopDlgParent () |
Protected Member Functions | |
| APP_BASE (UINT32 AllowedProduct1=0, UINT32 AllowedProduct2=0, UINT32 AllowedProduct3=0, UINT32 AllowedProduct4=0) | |
| Widget | MxInitLegacy (LEGACYINIT flags=LEGACYINIT_Default) |
| void | SetLegacyAllowShellResize () |
| virtual | ~APP_BASE () |
Private Member Functions | |
| virtual UINT32 | v_DetermineProductCode () const |
| virtual void | v_ExitInstance () |
| virtual const char * | v_GetProcessName () const =0 |
| virtual bool | v_InitInstance ()=0 |
| virtual bool | v_PreInitInstance () |
A class derived from this must be constructed by a class derived from APP_MAIN, either in v_InitInstance or in its constructor. Failure to follow this convention will result in an exception during application startup or shutdown. Note that this is handled automatically for applications based on MGUI::APP_MULTI.
Definition at line 83 of file appmain.h.
|
|
|
|
||||||||||||||||||||
|
Constructor.
|
|
|
Destructor.
|
|
|
Get command-line parameter for specified index.
|
|
|
Get number of command-line parameters.
|
|
|
|
|
|
Get top level parent window for dialogs Intended for use by MGUI::SHELL, not usually called directly.
|
|
|
Perform legacy initialization for processes using TopLevel shell (X only). Replaces MxInitProc(), should call from within v_InitInstance().
|
|
|
Set to allow resize of legacy toplevel shell. Must be done in derived class constructor. Required for some applications which need to dynamically grow the legacy toplevel shell. |
|
|
Override to determine product code for license check. Default implementation determines product code based on command line parameters and initialization settings. Not normally overridden. |
|
|
Override to perform resource cleanup prior to application exit.
|
|
|
Must be overridden to return 'process name' for use as 'INI group' and 'registry subkey'. Should return character string having no whitespace. |
|
|
Must be overridden to perform initialization of this application. Initialization normally includes creation of primary user interface windows prior to entering main message handling loop.
|
|
|
Called at startup just prior to MsysAppInitialize.
|
1.3.8-20040913