MessageBox('This should be on top.', 'Look', MB_OK);
应该是这样写的,这可是从DELPHI帮助找到的例子哟!
应该是这样写的,这可是从DELPHI帮助找到的例子哟!
解决方案 »
- 求解二个简单的语法问题
- 用ole创建的excel,怎么把数字的显示格式在程序里面设置为会计专用的格式
- 初学者问题,关于Query查询语句问题
- 怎样在控制台程序显出结果后,能停一下,当按下任意键后才结束?谢谢!
- 怎样用代码关掉关掉跳出的消息窗体(如Messgebox打开的)?
- 为什么程序一执行就会报错invalid variant type conversion呢???
- 50分问题:在Delphi中如何实现文件的复制。
- 应该不难不问题,解决后马上给200分或更多!!
- TO ahuige(灰不遛秋):谢谢和我一起研究哦
- 在录入的时候,怎样才能使用回车跳到下一个编辑框???(最好有代码)谢谢!!!
- 如何在TBDEClientDataset的CommandText的Where子句中处理Access的日期时间型字段的比较?
- 求教有关用DELPHI做数学规划的问题
你说的是 Application.MessageBOx函数,我想用的是Win32 APIS函数!!
‘ok’默认就是Pchar字符串,你还给前面加Pchar干啥?
是吗?可是这样也可以运行啊?
但是我想问的是为什么第一个参数是NULL就不行?
_______ _______________
组合键 提示用的图标
关于组合键和提示用的图标请参阅:
Value MeaningMB_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.MessageBox returns 0 if there isn抰 enough memory to create the message box. Otherwise it returns one of the following values:Value Numeric value MeaningIDOK 1 The user chose the OK button.
IDCANCEL 2 The user chose the Cancel button.
IDABORT 3 The user chose the Abort button.
IDRETRY 4 The user chose the Retry button.
IDIGNORE 5 The user chose the Ignore button.
IDYES 6 The user chose the Yes button.
IDNO 7 The user chose the No button.
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- icon appears in the message box.
MB_ICONSTOP,
MB_ICONERROR,
MB_ICONHAND
A stop-sign icon appears in the message box.
MessageBox(handle,'ok','title',MB_OK)