SkinUI入门教程

SkinUI入门教程


4.4 Alert组件

<ul> <li>调用以下接口弹出Alert:</li> </ul> <pre><code class="language-c">void CSkinDialog::Alert(const tstring&amp;amp; strTitle, const tstring&amp;amp; strMessage, const tstring&amp;amp; strButtonName);</code></pre> <h4>示例代码</h4> <pre><code class="language-c">void CMainDialog::OnBtnClickedAlert(UINT uNotifyCode, int nID, CSkinView* pView) { tstring strTitle = _T(&amp;quot;提示&amp;quot;); tstring strMessage = _T(&amp;quot;这是一个提示信息!&amp;quot;); tstring strButtonName = _T(&amp;quot;确定&amp;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>

页面列表

ITEM_HTML