Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>messagebox()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MessageBox()
Create, display, and activate a modal message-box window
------------------------------------------------------------------------------

Syntax
MessageBox( <hWnd>, <cMsg>, <cTitle>, <nType> )   -->   nRet

Arguments
<hWnd> is the handle to the window to be the parent of the
message-box.

<cMsg> is a character string to be displayed inside the client
area of the message-box.  This string can be split across
several lines using the character CHR(13) between lines.

<cTitle> is a character string to display in the title bar of
the message-box.

<nType> is an integer specifying the buttons that will be put
in the message-box and the icon (if any) to indicate the
importance of the message-box.  (Use combinations of the MB_*
values defined in WINDOWS.CH.)

Returns
If successful, an integer representing the user's response is
returned (one of IDABORT, IDCANCEL, IDIGNORE, IDNO, IDOK,
IDRETRY, IDYES as defined in WINDOWS.CH).  Otherwise, zero (0)
is returned.

Description
This is an easy way to force the user to recognise that a
particular event has occurred, or to make a choice.  However,
overuse should be avoided because it is a modal function.

Example
n = MessageBox( hWnd, "Really quit?", "Warning", MB_OKCANCEL )
if  n == IDOK
     quit
endif


See Also: MessageBeep()

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