Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>messagebox</b> create and display message window http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MessageBox           Create And Display Message Window

int MessageBox(hWndParent, lpText, lpCaption, wType)
HWND hWndParent;
LPSTR lpText;
LPSTR lpCaption;
WORD wType;
                wType
        |------------------------------|
        | MB_APPLMODAL         default |
        | MB_SYSTEMMODAL               |
        |------------------------------|
        | MB_OK                        |
        | MB_OKCANCEL                  |
        | MB_YESNOCANCEL               |
        | MB_YESNO                     |
        | MB_RETRYCANCEL               |
        | MB_ABORTRETRYIGNORE          |
        | MB_DEFBUTTON1                |
        | MB_DEFBUTTON2                |
        | MB_DEFBUTTON3                |
        |------------------------------|
        | MB_ICONASTERISK              |
        | MB_ICONEXCLAMATION           |
        | MB_ICONHAND                  |
        | MB_ICONQUESTION              |
        +------------------------------+

Returns:    One of the following depending on button pressed:

                |----------|
                | IDOK     |
                | IDCANCEL |
                | IDABORT  |
                | IDRETRY  |
                | IDIGNORE |
                | IDYES    |
                | IDNO     |
                +----------+

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson