4.8 Toast组件
<h4>相关方法</h4>
<pre><code class="language-c">void CSkinDialog::Toast(const tstring&amp; strText, UINT nType = TOAST_INFORMATION, int nDuration = 2, int nDelay = 0);</code></pre>
<h4>示例代码</h4>
<pre><code class="language-c">void CMainDialog::OnBtnClickedToast(UINT uNotifyCode, int nID, CSkinView* pView)
{
tstring strText = _T(&quot;这是一个提示信息!&quot;);
UINT nType = TOAST_INFORMATION;
int nDuration = 5;
int nDelay = 0;
Toast(strText, nType, nDuration, nDelay);
}</code></pre>
<h4>效果图</h4>
<p><img src="http://www.skinui.cn/doc/img/4/8/1.png" alt="Toast组件" /></p>