TModalResult 和 MessageBox 返回值
//其实是对应的
{ TModalResult values } const
mrNone = ;
mrOk = idOk;
mrCancel = idCancel;
mrAbort = idAbort;
mrRetry = idRetry;
mrIgnore = idIgnore;
mrYes = idYes;
mrNo = idNo;
mrAll = mrNo + ;
mrNoToAll = mrAll + ;
mrYesToAll = mrNoToAll + ;
{ MessageBox() Flags }
{$EXTERNALSYM MB_OK}
MB_OK = $;
{$EXTERNALSYM MB_OKCANCEL}
MB_OKCANCEL = $;
{$EXTERNALSYM MB_ABORTRETRYIGNORE}
MB_ABORTRETRYIGNORE = $;
{$EXTERNALSYM MB_YESNOCANCEL}
MB_YESNOCANCEL = $;
{$EXTERNALSYM MB_YESNO}
MB_YESNO = $;
{$EXTERNALSYM MB_RETRYCANCEL}
MB_RETRYCANCEL = $; {$EXTERNALSYM MB_ICONHAND}
MB_ICONHAND = $;
{$EXTERNALSYM MB_ICONQUESTION}
MB_ICONQUESTION = $;
{$EXTERNALSYM MB_ICONEXCLAMATION}
MB_ICONEXCLAMATION = $;
{$EXTERNALSYM MB_ICONASTERISK}
MB_ICONASTERISK = $;
{$EXTERNALSYM MB_USERICON}
MB_USERICON = $;
{$EXTERNALSYM MB_ICONWARNING}
MB_ICONWARNING = MB_ICONEXCLAMATION;
{$EXTERNALSYM MB_ICONERROR}
MB_ICONERROR = MB_ICONHAND;
{$EXTERNALSYM MB_ICONINFORMATION}
MB_ICONINFORMATION = MB_ICONASTERISK;
{$EXTERNALSYM MB_ICONSTOP}
MB_ICONSTOP = MB_ICONHAND; {$EXTERNALSYM MB_DEFBUTTON1}
MB_DEFBUTTON1 = $;
{$EXTERNALSYM MB_DEFBUTTON2}
MB_DEFBUTTON2 = $;
{$EXTERNALSYM MB_DEFBUTTON3}
MB_DEFBUTTON3 = $;
{$EXTERNALSYM MB_DEFBUTTON4}
MB_DEFBUTTON4 = $; {$EXTERNALSYM MB_APPLMODAL}
MB_APPLMODAL = $;
{$EXTERNALSYM MB_SYSTEMMODAL}
MB_SYSTEMMODAL = $;
{$EXTERNALSYM MB_TASKMODAL}
MB_TASKMODAL = $;
{$EXTERNALSYM MB_HELP}
MB_HELP = $; { Help Button } {$EXTERNALSYM MB_NOFOCUS}
MB_NOFOCUS = $;
{$EXTERNALSYM MB_SETFOREGROUND}
MB_SETFOREGROUND = $;
{$EXTERNALSYM MB_DEFAULT_DESKTOP_ONLY}
MB_DEFAULT_DESKTOP_ONLY = $; {$EXTERNALSYM MB_TOPMOST}
MB_TOPMOST = $;
{$EXTERNALSYM MB_RIGHT}
MB_RIGHT = $;
{$EXTERNALSYM MB_RTLREADING}
MB_RTLREADING = $; {$EXTERNALSYM MB_SERVICE_NOTIFICATION}
MB_SERVICE_NOTIFICATION = $;
{$EXTERNALSYM MB_SERVICE_NOTIFICATION_NT3X}
MB_SERVICE_NOTIFICATION_NT3X = $; {$EXTERNALSYM MB_TYPEMASK}
MB_TYPEMASK = $0000000F;
{$EXTERNALSYM MB_ICONMASK}
MB_ICONMASK = $000000F0;
{$EXTERNALSYM MB_DEFMASK}
MB_DEFMASK = $00000F00;
{$EXTERNALSYM MB_MODEMASK}
MB_MODEMASK = $;
{$EXTERNALSYM MB_MISCMASK}
MB_MISCMASK = $0000C000;
{ Dialog Box Command IDs }
{$EXTERNALSYM IDOK}
IDOK = ; ID_OK = IDOK;
{$EXTERNALSYM IDCANCEL}
IDCANCEL = ; ID_CANCEL = IDCANCEL;
{$EXTERNALSYM IDABORT}
IDABORT = ; ID_ABORT = IDABORT;
{$EXTERNALSYM IDRETRY}
IDRETRY = ; ID_RETRY = IDRETRY;
{$EXTERNALSYM IDIGNORE}
IDIGNORE = ; ID_IGNORE = IDIGNORE;
{$EXTERNALSYM IDYES}
IDYES = ; ID_YES = IDYES;
{$EXTERNALSYM IDNO}
IDNO = ; ID_NO = IDNO;
{$EXTERNALSYM IDCLOSE}
IDCLOSE = ; ID_CLOSE = IDCLOSE;
{$EXTERNALSYM IDHELP}
IDHELP = ; ID_HELP = IDHELP;
{$EXTERNALSYM IDTRYAGAIN}
IDTRYAGAIN = ;
{$EXTERNALSYM IDCONTINUE}
IDCONTINUE = ;
TModalResult 和 MessageBox 返回值的更多相关文章
- 关于MessageBox返回值
风格设置MB_OK. 此时无论点击确定还是点击X,都返回IDOK.风格设置MB_OKCANCEL,点击确认返回IDOK,点击取消和X都返回IDCANCEL.风格设置MB_YESNO,点击是返回IDYE ...
- C#中返回值封装
在平时开发过程中常常需要取一个方法的返回值,BOSS写了一个返回值类,做个练习以备不时之需: 返回值支持泛型和非泛型 先贴上代码: 非泛型返回值类: using System; using Syste ...
- VC与JavaScript交互(三) --- CWebPage类调用javascript函数(给js函数传参,并取得返回值)
①需要一个别人写好的类CWebPage,将其对于的两个文件WebPage.h和WebPage.cpp添加到工程中. ②添加WebBrowser控件,在视图/对话框类的头文件中#include &quo ...
- [转]WinExec、ShellExecute和CreateProcess及返回值判断方式
[转]WinExec.ShellExecute和CreateProcess及返回值判断方式 http://www.cnblogs.com/ziwuge/archive/2012/03/12/23924 ...
- C#调用存储过程带输出参数或返回值
CREATE PROCEDURE [dbo].[GetNameById] @studentid varchar(8), @studentname nvarchar(50) OUTPUT AS BEGI ...
- [转] ADO.NET调用存储过程带输出参数或返回值
CREATE PROCEDURE [dbo].[GetNameById] @studentid varchar(), @studentname nvarchar() OUTPUT AS BEGIN S ...
- C#调用存储过程详解(带返回值、参数输入输出等)
CREATE PROCEDURE [dbo].[GetNameById] @studentid varchar(8), @studentname nvarchar(50) OUTPUT AS BEGI ...
- c#代码 天气接口 一分钟搞懂你的博客为什么没人看 看完python这段爬虫代码,java流泪了c#沉默了 图片二进制转换与存入数据库相关 C#7.0--引用返回值和引用局部变量 JS直接调用C#后台方法(ajax调用) Linq To Json SqlServer 递归查询
天气预报的程序.程序并不难. 看到这个需求第一个想法就是只要找到合适天气预报接口一切都是小意思,说干就干,立马跟学生沟通价格. 不过谈报价的过程中,差点没让我一口老血喷键盘上,话说我们程序猿的人 ...
- VC/MFC中通过CWebPage类调用javascript函数(给js函数传参,并取得返回值)
转自:http://www.cnblogs.com/javaexam2/archive/2012/07/14/2632959.html ①需要一个别人写好的类CWebPage,将其对于的两个文件Web ...
随机推荐
- Java面试宝典(说说&和&&的区别)
&和&&都可以用作逻辑与的运算符,表示逻辑与(and),当运算符两边的表达式的结果都为true时,整个运算结果才为true,否则,只要有一方为false,则结果为false. ...
- lua --- 逻辑运算符小结
lua中的逻辑运算符,认为只有false.nil为假,其他的都为真(包括0.空串) a and b -- 如果a为false,则返回a,否则返回b a or b -- 如果a为true,则返 ...
- lua闭包实现迭代器遍历数组
--实现访问数组的迭代器 function visit(t) return function() i = i + return t[i] end end --要访问的数组 ,,,} itor = vi ...
- 最简单的解决Chrome浏览器主页被hao123、360和2345篡改的方法是什么
最简单的解决Chrome浏览器主页被hao123.360和2345篡改的方法是什么 一.总结 一句话总结:打开chrome的安装目录,将chrome.exe改成chrome1.exe即可,然后发送一个 ...
- Spring 拦截器实现+后台原理(MethodInterceptor)
MethodInterceptor MethodInterceptor是AOP项目中的拦截器(注:不是动态代理拦截器),区别与HandlerInterceptor拦截目标时请求,它拦截的目标是方法. ...
- ERROR org.redisson.client.handler.CommandDecoder - Unable to decode data. channel
一.异常出现的场景 某一天下午,测试突然跑过来说,IOS系统APP访问500,Android没问题.我的第一反应是那就奇怪了,调的接口都是一样的,莫非和系统有关系.而且这个错误重启服务后,过一段时间才 ...
- 关于导入高德地图 java.lang.UnsatisfiedLinkError: Couldn't load XXXfrom loader dalvik.system.PathClassLoader[DexPathLis
然后后面就是找不到高德地图提供的地图so 就是上面几个 然后不要忘了在buildGradle文件里添加这么一句话 sourceSets { main { jniLibs.srcDirs = ['lib ...
- 各种排序算法(java)
/** * 时间复杂度:O(n*n) * 简单选择排序法:每次从剩余元素中选择一个最小值,交换最小值与数组中相应位置上的数值 * n趟 * @param nums */ public static v ...
- HDU - 4780费用流
题意:M台机器要生产n个糖果,糖果i的生产区间在(si, ti),花费是k(pi-si),pi是实际开始生产的时间机器,j从初始化到生产糖果i所需的时间Cij,花费是Dij,任意机器从生产糖果i到生产 ...
- Python遍历文件个文件夹
在读文件的时候往往需要遍历文件夹,python的os.path包含了很多文件.文件夹操作的方法.下面列出: os.path.abspath(path) #返回绝对路径 os.path.basename ...