int MessageBox( HWND hWnd, // handle of owner window
LPCTSTR lpText, // address of text in message box
LPCTSTR lpCaption, // address of title of message box
UINT uType // style of message box
) ;
例如:
Delphi:
MessageBox(Form1.Handle, '找不到指定的文件。是否继续?', '警告',
MB_YESNO+MB_ICONWARNING+MB_DEFBUTTON2+MB_SYSTEMMODAL)