bool Desktop::OpenApplicationConsole(FCULONG appID) { bool bResult = false; ConsoleWindow* pConsole = new ConsoleWindow(this, m_owner.GetContainer()->GetController(), m_pDevice); if ( pConsole ) { m_mutexApps.Lock(); if ( pConsole->Create(INGAMEAPP_BASE_ID+SWT_APP_CONSOLE, appID, ResourceManager::instance().GetClientString(STR_APP_CONSOLE_CAPTION) ) ) { addChild( pConsole->GetGUIWindow() ); m_arrApps.push_back(pConsole); if ( m_pAppBar ) m_pAppBar->setActiveApp( pConsole ); bResult = true; } m_mutexApps.Unlock(); } return bResult; }