Reputation: 1
How to display a message box on the window which is created when we execute a visual c++ program using openGL. Specifically i want to display a message and one "OK" button.So when the user clicks on OK button it should resume to the same state as it was before that message box.
Thank you
Upvotes: 0
Views: 6048
Reputation: 6525
You said Visual C++; so I'd use something like this:
MessageBox(NULL, L"Description", L"Info",
MB_OK | MB_ICONEXCLAMATION);
It's defined in <winuser.h>
which should automatically be included with <windows.h>
, I think.
Upvotes: 1