MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / OnCreateClient

Method OnCreateClient

editor/MainFrm.cpp:1481–1503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1479// Initializes OS components for Descent3. MUST BE DONE BEFORE ANYTHING ELSE!
1480
1481BOOL CMainFrame::OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext *pContext) {
1482 // TODO: Add your specialized code here and/or call the base class
1483 PreInitD3Systems();
1484 WinMainInitEditor((unsigned)CWnd::m_hWnd, (unsigned)AfxGetInstanceHandle());
1485 ProgramVersion(DEVELOPMENT_VERSION, 0, 0, 0);
1486
1487 DisplaySplashScreen();
1488
1489 // Initialize a ton of stuff.
1490 InitD3Systems1(true);
1491 InitD3Systems2(true);
1492
1493 // Initialize scripts
1494 InitCScripts();
1495
1496 // Load variables from registry
1497 LoadEditorSettings();
1498
1499 // Change to the levels directory, since the most likely thing to open is a level
1500 ddio_SetWorkingDir("data\\levels");
1501
1502 return CFrameWnd::OnCreateClient(lpcs, pContext);
1503}
1504
1505void CMainFrame::ResizeKeypad() {
1506 if (::IsWindow(m_wndKeypadBar.m_hWnd)) {

Callers

nothing calls this directly

Calls 8

PreInitD3SystemsFunction · 0.85
WinMainInitEditorFunction · 0.85
ProgramVersionFunction · 0.85
InitD3Systems1Function · 0.85
InitD3Systems2Function · 0.85
InitCScriptsFunction · 0.85
LoadEditorSettingsFunction · 0.85
ddio_SetWorkingDirFunction · 0.50

Tested by

no test coverage detected