void SDLCtrl::State(int reason) { switch(reason) { case OPEN: { GuiLock __; CloseHWND(); HWND phwnd = GetTopCtrl()->GetHWND(); if(phwnd) { hwnd = hwndSDL; SetParent(hwndSDL, phwnd); } } break; default: DHCtrl::State(reason); } }
Report message to a moderator