void HandleExit(UI::Widget* pButton, UI::Manager* pManager) { UI::Button* pExit = (UI::Button*)pButton; pExit->SetCurrentState(pExit->INACTIVE); char *pMsg = GetMsg(17); new UI::MessageBox(pManager, dwFontID, uStyle, dwCharSize, LoginView::HandleExitBox, pMsg, UI::MSG_OK|UI::MSG_CANCEL, pButton->GetParent()->GetX(), pButton->GetParent()->GetY() - 120);//"Do you want to Exit the game?" delete[] pMsg; GetMouseCursor().SetState(CRS_DEFAULT); }