c++ - How to receive feedback from a Windows MessageBox? -


It is possible to do something similar to Windows:

  messagebox (hWnd, "yes How to react, how to react, how to react, how to respond, how to react,  

will return an integer referenced to the button by pressing. From the previous link: < Pre> select the return value of the IDBoft Ebert button The Iconsial Cancel button was selected, the button was pressed to continue Ignore Ignore button selected IIDO No button was selected. The IDOK OK button was selected. Select the IDRETRY Retry button IDTRYAGAIN Try Again button was selected. The IDYES Yes button was selected.

Then something like this:

  Full results = message Box (hwnd, "save work?", MB_YESNOCANCEL); if (result == IDOK) {// ...} and if (result == IDNO) {// ...} Else // cancel {// ...}  

Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -