• TModalResult 和 MessageBox 返回值


    //其实是对应的
    {
    TModalResult values } const mrNone = 0; mrOk = idOk; mrCancel = idCancel; mrAbort = idAbort; mrRetry = idRetry; mrIgnore = idIgnore; mrYes = idYes; mrNo = idNo; mrAll = mrNo + 1; mrNoToAll = mrAll + 1; mrYesToAll = mrNoToAll + 1;
      { MessageBox() Flags }
      {$EXTERNALSYM MB_OK}
      MB_OK = $00000000;
      {$EXTERNALSYM MB_OKCANCEL}
      MB_OKCANCEL = $00000001;
      {$EXTERNALSYM MB_ABORTRETRYIGNORE}
      MB_ABORTRETRYIGNORE = $00000002;
      {$EXTERNALSYM MB_YESNOCANCEL}
      MB_YESNOCANCEL = $00000003;
      {$EXTERNALSYM MB_YESNO}
      MB_YESNO = $00000004;
      {$EXTERNALSYM MB_RETRYCANCEL}
      MB_RETRYCANCEL = $00000005;
    
      {$EXTERNALSYM MB_ICONHAND}
      MB_ICONHAND = $00000010;
      {$EXTERNALSYM MB_ICONQUESTION}
      MB_ICONQUESTION = $00000020;
      {$EXTERNALSYM MB_ICONEXCLAMATION}
      MB_ICONEXCLAMATION = $00000030;
      {$EXTERNALSYM MB_ICONASTERISK}
      MB_ICONASTERISK = $00000040;
      {$EXTERNALSYM MB_USERICON}
      MB_USERICON = $00000080;
      {$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 = $00000000;
      {$EXTERNALSYM MB_DEFBUTTON2}
      MB_DEFBUTTON2 = $00000100;
      {$EXTERNALSYM MB_DEFBUTTON3}
      MB_DEFBUTTON3 = $00000200;
      {$EXTERNALSYM MB_DEFBUTTON4}
      MB_DEFBUTTON4 = $00000300;
    
      {$EXTERNALSYM MB_APPLMODAL}
      MB_APPLMODAL = $00000000;
      {$EXTERNALSYM MB_SYSTEMMODAL}
      MB_SYSTEMMODAL = $00001000;
      {$EXTERNALSYM MB_TASKMODAL}
      MB_TASKMODAL = $00002000;
      {$EXTERNALSYM MB_HELP}
      MB_HELP = $00004000;                          { Help Button }
    
      {$EXTERNALSYM MB_NOFOCUS}
      MB_NOFOCUS = $00008000;
      {$EXTERNALSYM MB_SETFOREGROUND}
      MB_SETFOREGROUND = $00010000;
      {$EXTERNALSYM MB_DEFAULT_DESKTOP_ONLY}
      MB_DEFAULT_DESKTOP_ONLY = $00020000;
    
      {$EXTERNALSYM MB_TOPMOST}
      MB_TOPMOST = $00040000;
      {$EXTERNALSYM MB_RIGHT}
      MB_RIGHT = $00080000;
      {$EXTERNALSYM MB_RTLREADING}
      MB_RTLREADING = $00100000;
    
      {$EXTERNALSYM MB_SERVICE_NOTIFICATION}
      MB_SERVICE_NOTIFICATION = $00200000;
      {$EXTERNALSYM MB_SERVICE_NOTIFICATION_NT3X}
      MB_SERVICE_NOTIFICATION_NT3X = $00040000;
    
      {$EXTERNALSYM MB_TYPEMASK}
      MB_TYPEMASK = $0000000F;
      {$EXTERNALSYM MB_ICONMASK}
      MB_ICONMASK = $000000F0;
      {$EXTERNALSYM MB_DEFMASK}
      MB_DEFMASK = $00000F00;
      {$EXTERNALSYM MB_MODEMASK}
      MB_MODEMASK = $00003000;
      {$EXTERNALSYM MB_MISCMASK}
      MB_MISCMASK = $0000C000;
      { Dialog Box Command IDs }
      {$EXTERNALSYM IDOK}
      IDOK = 1;          ID_OK = IDOK;
      {$EXTERNALSYM IDCANCEL}
      IDCANCEL = 2;      ID_CANCEL = IDCANCEL;
      {$EXTERNALSYM IDABORT}
      IDABORT = 3;       ID_ABORT = IDABORT;
      {$EXTERNALSYM IDRETRY}
      IDRETRY = 4;       ID_RETRY = IDRETRY;
      {$EXTERNALSYM IDIGNORE}
      IDIGNORE = 5;      ID_IGNORE = IDIGNORE;
      {$EXTERNALSYM IDYES}
      IDYES = 6;         ID_YES = IDYES;
      {$EXTERNALSYM IDNO}
      IDNO = 7;          ID_NO = IDNO;
      {$EXTERNALSYM IDCLOSE}
      IDCLOSE = 8;       ID_CLOSE = IDCLOSE;
      {$EXTERNALSYM IDHELP}
      IDHELP = 9;        ID_HELP = IDHELP;
      {$EXTERNALSYM IDTRYAGAIN}
      IDTRYAGAIN = 10;
      {$EXTERNALSYM IDCONTINUE}
      IDCONTINUE = 11;
  • 相关阅读:
    阿里在线笔试总结
    JAVA断言使用
    小心人员中的薄弱点
    Ubuntu 12.04.4 LTS下linphone-android编译记录
    Java基础:异常的限制
    Java基础:小知识点
    js正则表达式中和\
    Maven管理下Struts、Hibernate编译过程中配置文件缺失导致的“No result defined for action”和getSession()发生“NullPointerException”的解决办法
    Java基础:final关键字
    Java基础:复用类
  • 原文地址:https://www.cnblogs.com/CodeGear/p/6530276.html
Copyright © 2020-2023  润新知