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

Method OnActivateApp

editor/MainFrm.cpp:1560–1575  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1558}
1559
1560void CMainFrame::OnActivateApp(BOOL bActive, HTASK hTask) {
1561#if 0
1562 CFrameWnd::OnActivateApp(bActive, hTask);
1563
1564 if (bActive) {
1565 theApp.resume();
1566 mprintf_at(2,0,0, "App Active ");
1567 }
1568 else {
1569 theApp.pause();
1570 mprintf_at(2,0,0, "App Inactive");
1571 }
1572
1573 ((oeLnxApplication *)Descent)->run_handler(this->m_hWnd, WM_ACTIVATEAPP, (unsigned)bActive, 0);
1574#endif
1575}
1576
1577// ---------------------------------------------------------------------------
1578// These functions handle the status bar and displaying stuff in the status bar.

Callers

nothing calls this directly

Calls 3

pauseMethod · 0.80
run_handlerMethod · 0.80
resumeMethod · 0.45

Tested by

no test coverage detected