⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 group__ctrl__menubutton__msgs.htm

📁 MINIGUI1.6开发API
💻 HTM
📖 第 1 页 / 共 2 页
字号:
Definition at line <a class="el" href="menubutton_8h-source.htm#l00258">258</a> of file <a class="el" href="menubutton_8h-source.htm">menubutton.h</a>.    </td>  </tr></table><a class="anchor" name="ga2" doxytag="menubutton.h::MBM_RESETCTRL"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define MBM_RESETCTRL&nbsp;&nbsp;&nbsp;0xF202          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sends to the control to remove all items in the menu list. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__menubutton__msgs.htm#ga2">MBM_RESETCTRL</a> wParam = 0; lParam = 0;</pre></div><p><dl compact><dt><b>Returns:</b></dt><dd>Always be zero. </dd></dl><p>Definition at line <a class="el" href="menubutton_8h-source.htm#l00213">213</a> of file <a class="el" href="menubutton_8h-source.htm">menubutton.h</a>.    </td>  </tr></table><a class="anchor" name="ga6" doxytag="menubutton.h::MBM_SETCURITEM"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define MBM_SETCURITEM&nbsp;&nbsp;&nbsp;0xF207          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sends to set the current selected item based on index. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__menubutton__msgs.htm#ga6">MBM_SETCURITEM</a> <span class="keywordtype">int</span> cur; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)cur; lParam = 0;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>cur</em>&nbsp;</td><td>The index to be the current item.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The index of the old selected item. </dd></dl><p>Definition at line <a class="el" href="menubutton_8h-source.htm#l00292">292</a> of file <a class="el" href="menubutton_8h-source.htm">menubutton.h</a>.    </td>  </tr></table><a class="anchor" name="ga3" doxytag="menubutton.h::MBM_SETITEMDATA"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define MBM_SETITEMDATA&nbsp;&nbsp;&nbsp;0xF203          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sends to the control to set the data of a specific item. <p><div class="fragment"><pre class="fragment"> <a class="code" href="group__ctrl__menubutton__msgs.htm#ga3">MBM_SETITEMDATA</a> <span class="keywordtype">int</span> index; <a class="code" href="struct__MENUBUTTONITEM.htm">PMENUBUTTONITEM</a> pmbi; wParam = (<a class="code" href="group__win32__types.htm#ga8">WPARAM</a>)index; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>)pmbi;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>index</em>&nbsp;</td><td>The index of the item to be altered. </td></tr>    <tr><td valign="top"></td><td valign="top"><em>pmbi</em>&nbsp;</td><td>Pointer to the MENUBUTTONITEM structure that stores the new menubutton item data.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>MB_OKAY if success, otherwise will be one of the following error codes:</dd></dl><ul><li>MB_INV_ITEM<br> Indicate that the index you passed is valid.</li><li>MB_ERR_SPACE<br> No memory can be allocated for new item data. </li></ul><p>Definition at line <a class="el" href="menubutton_8h-source.htm#l00237">237</a> of file <a class="el" href="menubutton_8h-source.htm">menubutton.h</a>.    </td>  </tr></table><a class="anchor" name="ga7" doxytag="menubutton.h::MBM_SETSTRCMPFUNC"></a><p><table class="mdTable" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top">#define MBM_SETSTRCMPFUNC&nbsp;&nbsp;&nbsp;0xF208          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing="5" cellpadding="0" border="0">  <tr>    <td>      &nbsp;    </td>    <td><p>Sets the STRCMP function used to sort items. <p>An application sends a MBM_SETSTRCMPFUNC message to set a new STRCMP function to sort items in the menubutton.<p>Note that you should send this message before adding any item to the menubutton control.<p><div class="fragment"><pre class="fragment"> <span class="keyword">static</span> <span class="keywordtype">int</span> my_strcmp (<span class="keyword">const</span> <span class="keywordtype">char</span>* s1, <span class="keyword">const</span> <span class="keywordtype">char</span>* s2, size_t n) {      ...      <span class="keywordflow">return</span> 0; } <a class="code" href="group__ctrl__menubutton__msgs.htm#ga7">MBM_SETSTRCMPFUNC</a> wParam = 0; lParam = (<a class="code" href="group__win32__types.htm#ga9">LPARAM</a>) my_strcmp;</pre></div><p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td valign="top"></td><td valign="top"><em>my_strcmp</em>&nbsp;</td><td>Your own function to compare two strings.</td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>One of the following values:<ul><li>MB_OKAY<br> Success</li><li>MB_ERR<br> Not an empty menubutton </li></ul></dd></dl><p>Definition at line <a class="el" href="menubutton_8h-source.htm#l00323">323</a> of file <a class="el" href="menubutton_8h-source.htm">menubutton.h</a>.    </td>  </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:53 2007 for MiniGUI V1.6.10 API Reference by&nbsp;<a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -