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

📄 classwgui_1_1ctoolbar.html

📁 一个小巧的嵌入式图形系统wGUI, 可以用VC编译
💻 HTML
📖 第 1 页 / 共 2 页
字号:
    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> bool wGui::CToolBar::HandleMessage </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CMessage.html">CMessage</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>pMessage</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>CToolBars handle CTRL_LCLICK messages <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pMessage</em>&nbsp;</td><td>A pointer to the message </td></tr></table></dl><p>Reimplemented from <a class="el" href="classwGui_1_1CWindow.html#a27">wGui::CWindow</a>.<p>Definition at line <a class="el" href="wg__toolbar_8cpp-source.html#l00135">135</a> of file <a class="el" href="wg__toolbar_8cpp-source.html">wg_toolbar.cpp</a>.<p>References <a class="el" href="wg__message_8h-source.html#l00081">wGui::CMessage::Destination()</a>, <a class="el" href="wg__window_8h-source.html#l00200">wGui::CWindow::m_pParentWindow</a>, <a class="el" href="wg__toolbar_8h-source.html#l00095">m_vpButtons</a>, <a class="el" href="wg__message_8h-source.html#l00078">wGui::CMessage::MessageType()</a>, and <a class="el" href="wg__message_8h-source.html#l00084">wGui::CMessage::Source()</a>.    </td>  </tr></table><a name="a2" doxytag="wGui::CToolBar::InsertButton"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void wGui::CToolBar::InsertButton </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CButton.html">CButton</a> *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>pButton</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>long int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>iButtonID</em> = 0, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>iPosition</em> = -1</td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Add a button to the toolbar The toolbar will become the button's parent The toolbar will catch all CTRL_LCLICK messages from the buttons and will post a CTRL_LCLICK message from the toolbar with the iButtonID value as the iNewValue <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pButton</em>&nbsp;</td><td>A pointer to the button to be inserted, inserts a spacer if this is NULL </td></tr><tr><td valign=top><em>iButtonID</em>&nbsp;</td><td>An identifier that the toolbar will return when a button is clicked on, defaults to 0 </td></tr><tr><td valign=top><em>iPosition</em>&nbsp;</td><td>The position to insert the button at (defaults to adding to the end of the toolbar) </td></tr></table></dl><p>Definition at line <a class="el" href="wg__toolbar_8cpp-source.html#l00049">49</a> of file <a class="el" href="wg__toolbar_8cpp-source.html">wg_toolbar.cpp</a>.<p>References <a class="el" href="wg__toolbar_8h-source.html#l00095">m_vpButtons</a>, <a class="el" href="wg__toolbar_8cpp-source.html#l00096">RepositionButtons()</a>, and <a class="el" href="wg__window_8cpp-source.html#l00223">wGui::CWindow::SetNewParent()</a>.    </td>  </tr></table><a name="a3" doxytag="wGui::CToolBar::RemoveButton"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void wGui::CToolBar::RemoveButton </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">int&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>iPosition</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Remove a button from the toolbar This will automatically delete the button <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>iPosition</em>&nbsp;</td><td>The position of the button to remove </td></tr></table></dl><p>Definition at line <a class="el" href="wg__toolbar_8cpp-source.html#l00073">73</a> of file <a class="el" href="wg__toolbar_8cpp-source.html">wg_toolbar.cpp</a>.<p>References <a class="el" href="wg__toolbar_8h-source.html#l00095">m_vpButtons</a>.    </td>  </tr></table><a name="a7" doxytag="wGui::CToolBar::SetWindowRect"></a><p><table width="100%" cellpadding="2" cellspacing="0" border="0">  <tr>    <td class="md">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void wGui::CToolBar::SetWindowRect </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CRect.html">CRect</a> &amp;&nbsp;</td>          <td class="mdname1" valign="top" nowrap>&nbsp; <em>WindowRect</em>          </td>          <td class="md" valign="top">)&nbsp;</td>          <td class="md" nowrap><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><a class="el" href="classwGui_1_1CWindow.html">CWindow</a> overrides Giving a control a new WindowRect will move and resize the control <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>WindowRect</em>&nbsp;</td><td>A <a class="el" href="classwGui_1_1CRect.html">CRect</a> that defines the outer limits of the control </td></tr></table></dl><p>Reimplemented from <a class="el" href="classwGui_1_1CWindow.html#a2">wGui::CWindow</a>.<p>Definition at line <a class="el" href="wg__toolbar_8cpp-source.html#l00128">128</a> of file <a class="el" href="wg__toolbar_8cpp-source.html">wg_toolbar.cpp</a>.<p>References <a class="el" href="wg__toolbar_8cpp-source.html#l00096">RepositionButtons()</a>.    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="wg__toolbar_8h-source.html">wg_toolbar.h</a><li><a class="el" href="wg__toolbar_8cpp-source.html">wg_toolbar.cpp</a></ul><hr><address style="align: right;"><small>Generated on Sat Oct 25 12:43:28 2003 for wGui by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

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