zoukankan      html  css  js  c++  java
  • 常见的消息按钮映射


                                      消息*返回值*总结

    int nChoice=AfxMessageBox("Overwrite existing file?",MB_YESNOCANCEL|MB_ICONQUESTION);

    if(nChoice==IDYES){ //Overwrite file }

    消息类型                             包含在对话框中的按钮

    MB_ABORTRETRYIGNORE   Abort,Retry,and Ignore

    MB_OK                             OK

    MB_OKCANCEL                 OK and Cancel

    MB_RETRYCANCEL            Retry and Cancel

    MB_YESNO                       Yes and NO

    MB_YESNOCANCEL           Yes,NO,and Cancle

    消息框的返回值说明了用户选择了那一个按钮。表列出了用户可能的选择和返回值。

    返回值                             选中的按钮

    IDABORT                        Abort

    IDCANCEL                      Cancel

    IDIGNORE                      Ignore

    IDNO                             No

    IDOK                             OK

    IDRETRY                       Retry

    IDYES                           Yes  

  • 相关阅读:
    efwplus框架
    注册区域
    社招面试记录与总结
    验证码 Captcha 之大插件
    发生内存泄漏?
    Flume+LOG4J+Kafka
    协议如何保证可靠传输
    oracle之spool详细使用总结(转)
    SSH协议详解(转)
    oracle nologging用法(转)
  • 原文地址:https://www.cnblogs.com/fengbo/p/2624929.html
Copyright © 2011-2022 走看看