4.4 Alert组件
<ul>
<li>调用以下接口弹出Alert:</li>
</ul>
<pre><code class="language-c">void CSkinDialog::Alert(const tstring&amp; strTitle, const tstring&amp; strMessage, const tstring&amp; strButtonName);</code></pre>
<h4>示例代码</h4>
<pre><code class="language-c">void CMainDialog::OnBtnClickedAlert(UINT uNotifyCode, int nID, CSkinView* pView)
{
tstring strTitle = _T(&quot;提示&quot;);
tstring strMessage = _T(&quot;这是一个提示信息!&quot;);
tstring strButtonName = _T(&quot;确定&quot;);
Alert(strMessage, strTitle, strButtonName);
}</code></pre>
<h4>效果图</h4>
<p><img src="http://www.skinui.cn/doc/img/4/4/1.png" alt="Alert组件" /></p>