哪位能告知MessageBox的用法?--多谢--我的积分不够,只能给1分,不好意思啦!(1分)

  • 主题发起人 主题发起人 还珠格格
  • 开始时间 开始时间

还珠格格

Unregistered / Unconfirmed
GUEST, unregistred user!
哪位能告知MessageBox的用法?--多谢--我的积分不够,只能给1分,不好意思啦!
 
看帮助:(以下载自帮助)
function MessageBox(const Text, Caption: PChar
Flags: Longint): Integer;
if Application.MessageBox(
'Could not open Table1 exclusively - Try again?',
'Open Error',
MB_OKCANCEL + MB_DEFBUTTON1) <> IDOK then
raise

 
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
);

int:=MessageBox(0,PChar('提示信息内容'),PChar('标题栏'),MB_OKCANCEL+MB_ICONWARNING);
OK&amp;Cancel按钮 警告图标
按OK int:=IDOK.


MB_ABORTRETRYIGNORE The message box contains three push buttons: Abort, Retry, and Ignore.
MB_OK The message box contains one push button: OK. This is the default.
MB_OKCANCEL The message box contains two push buttons: OK and Cancel.
MB_RETRYCANCEL The message box contains two push buttons: Retry and Cancel.
MB_YESNO The message box contains two push buttons: Yes and No.
MB_YESNOCANCEL The message box contains three push buttons: Yes, No, and Cancel.


Specify one of the following flags to display an icon in the message box:

Flag Meaning
MB_ICONEXCLAMATION,
MB_ICONWARNING
An exclamation-point icon appears in the message box.
MB_ICONINFORMATION, MB_ICONASTERISK
An icon consisting of a lowercase letter i in a circle appears in the message box.
MB_ICONQUESTION A question-mark icon appears in the message box.
MB_ICONSTOP,
MB_ICONERROR,
MB_ICONHAND
A stop-sign icon appears in the message box.

IDABORT Abort button was selected.
IDCANCEL Cancel button was selected.
IDIGNORE Ignore button was selected.
IDNO No button was selected.
IDOK OK button was selected.
IDRETRY Retry button was selected.
IDYES Yes button was selected.
 
if Application.MessageBox(' 你需要吗?', '提示', MB_OKCANCEL) <> IDOK then
showmessage('no');
 
application.MessageBox('密码不对,请确认!','警告!',0);

唉,世道艰难,一分我也要,格格就把一分给我吧,求求您了。
 
还是 WINAIP 好.
messagebox(handle,'1分就一分吧','帮助',mb_ok);
 
zhang w都说玩了。:(
 
格格收帖!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
后退
顶部