SkinUI5.0官方文档

SkinUI5.0官方文档


可输入消息框

<h4>效果图</h4> <p><img src="http://www.skinui.cn/doc/img/5.0/4/Prompt.png" alt="可输入消息框" /></p> <ul> <li>调用以下接口弹出可输入消息框:</li> </ul> <pre><code class="language-c">LONG Prompt(String&amp; strEditText, String&amp; strEditTips, const String&amp; strMessage, const String&amp; strCaption = _T(""), const String&amp; strButtonOK = _T(""), const String&amp; strButtonCancel = _T(""), LONG nLimit = 0);</code></pre> <h4>示例代码</h4> <ul> <li>h文件</li> </ul> <pre><code class="language-c">#pragma once class CDemoPromptLayout : public CFlexLayout { public: enum { IDC_BUTTON_CLICK_ME = 1001, }; public: CDemoPromptLayout(CView* pParent); public: virtual void OnBuildFinish(); protected: void OnBtnClickedClickMe(UINT uNotifyCode, int nID, CView* pView); SKINUI_DECLARE_MESSAGE_MAP() SKINUI_DECLARE_DYNCREATE(CDemoPromptLayout, CFlexLayout) };</code></pre> <ul> <li>cpp文件</li> </ul> <pre><code class="language-c">#include &lt;stdafx.h&gt; #include "DemoPromptLayout.h" SKINUI_BEGIN_MESSAGE_MAP(CDemoPromptLayout, CFlexLayout) ON_SKINUI_COMMAND(IDC_BUTTON_CLICK_ME, OnBtnClickedClickMe) SKINUI_END_MESSAGE_MAP() CDemoPromptLayout::CDemoPromptLayout(CView* pParent) : CFlexLayout(pParent) { } void CDemoPromptLayout::OnBuildFinish() { CFlexLayout::OnBuildFinish(); } void CDemoPromptLayout::OnBtnClickedClickMe(UINT uNotifyCode, int nID, CView* pView) { String strCaption = _T("提示"); String strMessage = _T("有没有收到我的消息?"); String strButtonOK = _T("收到"); String strButtonCancel = _T("没有"); String strEditText; int nButtonIndex = GetOwner()-&gt;Prompt(strEditText, strMessage, strCaption, strButtonOK, strButtonCancel); }</code></pre>

页面列表

ITEM_HTML