📄 classwgui_1_1cwindow.html
字号:
<td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Return the WindowText for the current window <dl compact><dt><b>Returns: </b></dt><dd>The WindowText </dl><p>Definition at line <a class="el" href="wg__window_8h-source.html#l00123">123</a> of file <a class="el" href="wg__window_8h-source.html">wg_window.h</a>.<p>References <a class="el" href="wg__window_8h-source.html#l00188">m_sWindowText</a>. </td> </tr></table><a name="a27" doxytag="wGui::CWindow::HandleMessage"></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"> bool wGui::CWindow::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>Attempt to handle the given message CWindows handle any APP_PAINT messages that have them marked as the destination <dl compact><dt><b>Returns: </b></dt><dd>true if the object handled the message (the message will not be given to any other handlers) </dl><p>Implements <a class="el" href="classwGui_1_1CMessageClient.html#a2">wGui::CMessageClient</a>.<p>Reimplemented in <a class="el" href="classwGui_1_1CButton.html#a8">wGui::CButton</a>, <a class="el" href="classwGui_1_1CCheckBox.html#a7">wGui::CCheckBox</a>, <a class="el" href="classwGui_1_1CDropDown.html#a11">wGui::CDropDown</a>, <a class="el" href="classwGui_1_1CEditBox.html#a10">wGui::CEditBox</a>, <a class="el" href="classwGui_1_1CFrame.html#a13">wGui::CFrame</a>, <a class="el" href="classwGui_1_1CListBox.html#a17">wGui::CListBox</a>, <a class="el" href="classwGui_1_1CMenuBase.html#a9">wGui::CMenuBase</a>, <a class="el" href="classwGui_1_1CMenu.html#a5">wGui::CMenu</a>, <a class="el" href="classwGui_1_1CPopupMenu.html#a10">wGui::CPopupMenu</a>, <a class="el" href="classwGui_1_1CScrollBar.html#a11">wGui::CScrollBar</a>, <a class="el" href="classwGui_1_1CToolBar.html#a8">wGui::CToolBar</a>, <a class="el" href="classwGui_1_1CToolTip.html#a6">wGui::CToolTip</a>, and <a class="el" href="classwGui_1_1CView.html#a7">wGui::CView</a>.<p>Definition at line <a class="el" href="wg__window_8cpp-source.html#l00290">290</a> of file <a class="el" href="wg__window_8cpp-source.html">wg_window.cpp</a>.<p>References <a class="el" href="wg__message_8h-source.html#l00081">wGui::CMessage::Destination()</a>, <a class="el" href="wg__message_8h-source.html#l00078">wGui::CMessage::MessageType()</a>, and <a class="el" href="wg__window_8cpp-source.html#l00213">StartDrawProc()</a>. </td> </tr></table><a name="a9" doxytag="wGui::CWindow::IsChildOf"></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"> bool wGui::CWindow::IsChildOf </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">CWindow * </td> <td class="mdname1" valign="top" nowrap> <em>pWindow</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Find out if the window is a child of another specified window <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pWindow</em> </td><td>A pointer to the window that we're testing to see if this is a child of </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>true if the window is a child of the specified window, this will return false if the specified window is the same as the current window </dl><p>Definition at line <a class="el" href="wg__window_8cpp-source.html#l00133">133</a> of file <a class="el" href="wg__window_8cpp-source.html">wg_window.cpp</a>.<p>References <a class="el" href="wg__window_8cpp-source.html#l00104">GetAncestor()</a>, and <a class="el" href="classwGui_1_1CWindow.html#s2s0">PARENT</a>. </td> </tr></table><a name="a10" doxytag="wGui::CWindow::IsVisible"></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"> virtual bool wGui::CWindow::IsVisible </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Get the visibility of the control <dl compact><dt><b>Returns: </b></dt><dd>true if the control is visible </dl><p>Definition at line <a class="el" href="wg__window_8h-source.html#l00100">100</a> of file <a class="el" href="wg__window_8h-source.html">wg_window.h</a>.<p>References <a class="el" href="wg__window_8h-source.html#l00209">m_bVisible</a>.<p>Referenced by <a class="el" href="wg__tooltip_8cpp-source.html#l00101">wGui::CToolTip::HandleMessage()</a>, <a class="el" href="wg__dropdown_8cpp-source.html#l00076">wGui::CDropDown::HandleMessage()</a>, <a class="el" href="wg__dropdown_8cpp-source.html#l00163">wGui::CDropDown::HideListBox()</a>, and <a class="el" href="wg__dropdown_8cpp-source.html#l00151">wGui::CDropDown::ShowListBox()</a>. </td> </tr></table><a name="a4" doxytag="wGui::CWindow::MoveWindow"></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::CWindow::MoveWindow </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="classwGui_1_1CPoint.html">CPoint</a> & </td> <td class="mdname1" valign="top" nowrap> <em>MoveDistance</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>Move the window and any child windows <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>MoveDistance</em> </td><td>The relative distance to move the window </td></tr></table></dl><p>Reimplemented in <a class="el" href="classwGui_1_1CFrame.html#a10">wGui::CFrame</a>, <a class="el" href="classwGui_1_1CScrollBar.html#a9">wGui::CScrollBar</a>, and <a class="el" href="classwGui_1_1CToolTip.html#a5">wGui::CToolTip</a>.<p>Definition at line <a class="el" href="wg__window_8cpp-source.html#l00084">84</a> of file <a class="el" href="wg__window_8cpp-source.html">wg_window.cpp</a>.<p>References <a class="el" href="wg__window_8cpp-source.html#l00104">GetAncestor()</a>, <a class="el" href="wg__window_8h-source.html#l00203">m_ChildWindows</a>, <a class="el" href="wg__window_8h-source.html#l00197">m_ClientRect</a>, <a class="el" href="wg__window_8h-source.html#l00191">m_WindowRect</a>, and <a class="el" href="classwGui_1_1CWindow.html#s2s0">PARENT</a>. </td> </tr></table><a name="a25" doxytag="wGui::CWindow::OnMouseButtonDown"></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"> bool wGui::CWindow::OnMouseButtonDown </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CPoint.html">CPoint</a> </td> <td class="mdname" nowrap> <em>Point</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned int </td> <td class="mdname" nowrap> <em>Button</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This is called whenever the window is clicked on by the mouse Only the topmost window that bounds the point will be called by the system <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>Point</em> </td><td>The point where the mouse clicked </td></tr><tr><td valign=top><em>Button</em> </td><td>A bitfield indicating which button the window was clicked with </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd>False by default, if an overridden control uses the click, then it should return true if it's in the bounds of the window </dl><p>Reimplemented in <a class="el" href="classwGui_1_1CButton.html#a6">wGui::CButton</a>, <a class="el" href="classwGui_1_1CCheckBox.html#a5">wGui::CCheckBox</a>, <a class="el" href="classwGui_1_1CEditBox.html#a9">wGui::CEditBox</a>, <a class="el" href="classwGui_1_1CFrame.html#a12">wGui::CFrame</a>, <a class="el" href="classwGui_1_1CListBox.html#a15">wGui::CListBox</a>, <a class="el" href="classwGui_1_1CMenuBase.html#a8">wGui::CMenuBase</a>, <a class="el" href="classwGui_1_1CMenu.html#a4">wGui::CMenu</a>, <a class="el" href="classwGui_1_1CPopupMenu.html#a9">wGui::CPopupMenu</a>, and <a class="el" href="classwGui_1_1CScrollBar.html#a10">wGui::CScrollBar</a>.<p>Definition at line <a class="el" href="wg__window_8cpp-source.html#l00238">238</a> of file <a class="el" href="wg__window_8cpp-source.html">wg_window.cpp</a>.<p>References <a class="el" href="wg__rect_8cpp-source.html#l00167">wGui::CRect::HitTest()</a>, <a class="el" href="wg__window_8h-source.html#l00209">m_bVisible</a>, <a class="el" href="wg__window_8h-source.html#l00203">m_ChildWindows</a>, and <a class="el" href="wg__window_8h-source.html#l00191">m_WindowRect</a>.<p>Referenced by <a class="el" href="wg__view_8cpp-source.html#l00112">wGui::CView::HandleMessage()</a>. </td> </tr></table><a name="a26" doxytag="wGui::CWindow::OnMouseButtonUp"></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"> bool wGui::CWindow::OnMouseButtonUp </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CPoint.html">CPoint</a> </td> <td class="mdname" nowrap> <em>Point</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>unsigned int </td> <td class="mdname" nowrap> <em>Button</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This is called whenever the a mouse button is released in a window Only the topmost window that bounds the point will be called by the system <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -