📄 classwgui_1_1ctoolbar.html
字号:
<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">( </td> <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CMessage.html">CMessage</a> * </td> <td class="mdname1" valign="top" nowrap> <em>pMessage</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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> </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">( </td> <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CButton.html">CButton</a> * </td> <td class="mdname" nowrap> <em>pButton</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>long int </td> <td class="mdname" nowrap> <em>iButtonID</em> = 0, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>iPosition</em> = -1</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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> </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> </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> </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">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>iPosition</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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> </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">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CRect.html">CRect</a> & </td> <td class="mdname1" valign="top" nowrap> <em>WindowRect</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </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> </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 + -