4.6 Prompt组件
<h4>相关方法</h4>
<pre><code class="language-c">UINT CSkinDialog::Prompt(const tstring&amp; strTitle, const tstring&amp; strMessage, const tstring&amp; strButtonOK, const tstring&amp; strButtonCancel, tstring&amp; strEditText);</code></pre>
<h4>示例代码</h4>
<pre><code class="language-c">void CMainDialog::OnBtnClickedPrompt(UINT uNotifyCode, int nID, CSkinView* pView)
{
tstring strTitle = _T(&quot;提示&quot;);
tstring strMessage = _T(&quot;有没有收到我的消息?&quot;);
tstring strButtonOK = _T(&quot;收到&quot;);
tstring strButtonCancel = _T(&quot;没有&quot;);
tstring strEditText;
LONG nIndex = GetOwner()-&gt;Prompt(strMessage, strTitle, strButtonOK, strButtonCancel, strEditText);
}</code></pre>
<h4>效果图</h4>
<p><img src="http://www.skinui.cn/doc/img/4/6/1.png" alt="Prompt组件" /></p>