MessageBox

From Wiki

Jump to: navigation, search
This article is written by Konrad, thus using rather nonstandard English:)

MessageBox (DNM Script function)

full declaration

int MessageBox(string Message, [string Caption],[int Type=MB_OK])

return value

int

description

MessageBox is an equivalent for Windows Api function MessageBox, thus you can find it on MSDN here: http://search.msdn.microsoft.com/search/default.aspx?siteId=0&tab=0&query=MessageBox

Example:

MessageBox("Hello world!");
if (MessageBox("Are you sure ?","Some caption",MB_YESNO)==IDYES){
 MessageBox("yes");
};

Identical to Win API MessageBox, except that it doesn't take 'HWND' as the first parameter.


Personal tools
konradp.com