4.3 非模态消息框
<ul>
<li>调用以下接口弹出非模态消息框:</li>
</ul>
<pre><code class="language-c">UINT CSkinDialog::MsgBoxModeless(const tstring&amp; strText, const tstring&amp; strCaption = _T(&quot;&quot;), UINT nType = MB_OK, const tstring&amp; strOk = _T(&quot;&quot;), const tstring&amp; strCancel = _T(&quot;&quot;), const tstring&amp; strCheckBox = _T(&quot;&quot;), BOOL bChecked = FALSE, UINT nId = 0, LPARAM lParam = NULL);</code></pre>
<ul>
<li>nType仅支持以下类型:</li>
</ul>
<pre><code class="language-c">MB_OK
MB_YESNO
MB_ICONWARNING
MB_ICONERROR</code></pre>
<h4>示例代码</h4>
<pre><code class="language-c">void CMainDialog::OnBtnClickedMsgBoxModeless(UINT uNotifyCode, int nID, CSkinView* pView)
{
MsgBoxModeless(SkinUI::GetString(_T(&quot;IDS_CONTROL_SHOW_TEXT24&quot;)));
}</code></pre>
<h4>效果图</h4>
<p><img src="http://www.skinui.cn/doc/img/4/3/1.png" alt="非模态消息框" /></p>