|
SimpleWindow
|
处理消息框消息的辅助类 更多...
#include <MsgBox.h>
Public 成员函数 | |
| MsgBoxResultHelper (MsgBoxResult result) | |
| 构造MsgBoxResultHelper | |
| operator sw::MsgBoxResult () const noexcept | |
| 隐式转换MsgBoxResult | |
| MsgBoxResultHelper & | OnOk (const Action<> &callback) |
| 指定按下“确定”按钮时的处理函数 | |
| MsgBoxResultHelper & | OnYes (const Action<> &callback) |
| 指定按下“是”按钮时的处理函数 | |
| MsgBoxResultHelper & | OnNo (const Action<> &callback) |
| 指定按下“否”按钮时的处理函数 | |
| MsgBoxResultHelper & | OnCancel (const Action<> &callback) |
| 指定按下“取消”按钮时的处理函数 | |
| MsgBoxResultHelper & | OnAbort (const Action<> &callback) |
| 指定按下“中止”按钮时的处理函数 | |
| MsgBoxResultHelper & | OnContinue (const Action<> &callback) |
| 指定按下“继续”按钮时的处理函数 | |
| MsgBoxResultHelper & | OnIgnore (const Action<> &callback) |
| 指定按下“忽略”按钮时的处理函数 | |
| MsgBoxResultHelper & | OnRetry (const Action<> &callback) |
| 指定按下“重试”按钮时的处理函数 | |
| MsgBoxResultHelper & | OnTryAgain (const Action<> &callback) |
| 指定按下“重试”按钮时的处理函数 | |
| template<MsgBoxResult RES> | |
| MsgBoxResultHelper & | On (const Action<> &callback) |
| 指定消息框结果的处理函数 | |
Public 属性 | |
| ReadOnlyProperty< MsgBoxResult > | Result |
| 消息框的结果 | |
处理消息框消息的辅助类
| MsgBoxResultHelper & sw::MsgBoxResultHelper::OnTryAgain | ( | const Action<> & | callback | ) |
指定按下“重试”按钮时的处理函数