- SetDialogBkColor(); // hook gray dialogs (was default in MFC V1)
-
- wxEntry((WXHINSTANCE) m_hInstance, (WXHINSTANCE) m_hPrevInstance, m_lpCmdLine, m_nCmdShow, FALSE);
-
+ if ( !CWinApp::InitInstance() )
+ return FALSE;
+
+ // TODO: cmd line parsing
+ WXDLLIMPEXP_BASE void wxSetInstance(HINSTANCE hInst);
+ wxSetInstance(m_hInstance);
+ wxApp::m_nCmdShow = m_nCmdShow;
+ int argc = 0;
+ wxChar **argv = NULL;
+ wxEntryStart(argc, argv);
+ if ( !wxTheApp || !wxTheApp->CallOnInit() )
+ return FALSE;
+