MessageBox loses focus on Smartphone and reboot is needed

Hi everybody,

I use ATL and Visual Studio 2005.
I create an EDIT BOX like this:


Answer this question

MessageBox loses focus on Smartphone and reboot is needed

  • Philipp Lamp

    Along with all the other attributes like MB_YESNO, etc, add MB_SETFOREGROUND and/or MB_TOPMOST.

     

    if (MessageBox(hWnd, _T("Do you want to exit the program "), _T("Exit the program "), MB_ICONWARNING | MB_YESNO | MB_APPLMODAL | MB_SETFOREGROUND) == IDYES)
    {
    //exit the game
    }


  • MessageBox loses focus on Smartphone and reboot is needed