📄 classwgui_1_1cpopupmenu.html
字号:
</table><a name="a9" doxytag="wGui::CPopupMenu::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::CPopupMenu::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 popup 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>True if it's in the bounds of the popup </dl><p>Reimplemented from <a class="el" href="classwGui_1_1CMenuBase.html#a8">wGui::CMenuBase</a>.<p>Definition at line <a class="el" href="wg__menu_8cpp-source.html#l00501">501</a> of file <a class="el" href="wg__menu_8cpp-source.html">wg_menu.cpp</a>.<p>References <a class="el" href="wg__window_8cpp-source.html#l00104">wGui::CWindow::GetAncestor()</a>, <a class="el" href="wg__window_8cpp-source.html#l00096">wGui::CWindow::GetClientRect()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00086">wGui::CMenuBase::HideActivePopup()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00419">HideAll()</a>, <a class="el" href="wg__rect_8cpp-source.html#l00167">wGui::CRect::HitTest()</a>, <a class="el" href="wg__window_8h-source.html#l00209">wGui::CWindow::m_bVisible</a>, <a class="el" href="wg__menu_8h-source.html#l00133">wGui::CMenuBase::m_MenuItems</a>, <a class="el" href="wg__menu_8h-source.html#l00136">wGui::CMenuBase::m_pActivePopup</a>, <a class="el" href="wg__menu_8h-source.html#l00269">m_pParentMenu</a>, <a class="el" href="wg__window_8h-source.html#l00200">wGui::CWindow::m_pParentWindow</a>, <a class="el" href="wg__window_8h-source.html#l00191">wGui::CWindow::m_WindowRect</a>, <a class="el" href="classwGui_1_1CWindow.html#s2s1">wGui::CWindow::ROOT</a>, <a class="el" href="wg__menu_8cpp-source.html#l00626">ShowActivePopup()</a>, and <a class="el" href="wg__menu_8cpp-source.html#l00595">UpdateCachedRects()</a>. </td> </tr></table><a name="a7" doxytag="wGui::CPopupMenu::SetParentMenu"></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::CPopupMenu::SetParentMenu </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="classwGui_1_1CMenu.html">CMenu</a> * </td> <td class="mdname1" valign="top" nowrap> <em>pParentMenu</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This is only for root popup menus that are dropped by a <a class="el" href="classwGui_1_1CMenu.html">CMenu</a> This doesn't set the actual parent of the control since the root window (probably a <a class="el" href="classwGui_1_1CView.html">CView</a>) should be the real parent This is called automatically when a popup menu is inserted into a <a class="el" href="classwGui_1_1CMenu.html">CMenu</a> (via InsertMenuItem) <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>pParentMenu</em> </td><td>A pointer to the <a class="el" href="classwGui_1_1CMenu.html">CMenu</a> object that acts as the Popup's parent </td></tr></table></dl><p>Definition at line <a class="el" href="wg__menu_8h-source.html#l00237">237</a> of file <a class="el" href="wg__menu_8h-source.html">wg_menu.h</a>.<p>References <a class="el" href="wg__menu_8h-source.html#l00269">m_pParentMenu</a>.<p>Referenced by <a class="el" href="wg__menu_8cpp-source.html#l00215">wGui::CMenu::InsertMenuItem()</a>. </td> </tr></table><a name="a2" doxytag="wGui::CPopupMenu::Show"></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::CPopupMenu::Show </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="mdname1" valign="top" nowrap> <em>Position</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>Show the popup at the given point <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>Position</em> </td><td>The point to use for the top left corner of the popup </td></tr></table></dl><p>Definition at line <a class="el" href="wg__menu_8cpp-source.html#l00384">384</a> of file <a class="el" href="wg__menu_8cpp-source.html">wg_menu.cpp</a>.<p>References <a class="el" href="wg__menu_8cpp-source.html#l00409">Hide()</a>, <a class="el" href="wg__window_8h-source.html#l00209">wGui::CWindow::m_bVisible</a>, <a class="el" href="wg__menu_8h-source.html#l00133">wGui::CMenuBase::m_MenuItems</a>, <a class="el" href="wg__window_8h-source.html#l00191">wGui::CWindow::m_WindowRect</a>, <a class="el" href="wg__window_8cpp-source.html#l00077">wGui::CWindow::SetWindowRect()</a>, <a class="el" href="wg__window_8cpp-source.html#l00213">wGui::CWindow::StartDrawProc()</a>, <a class="el" href="wg__rect_8h-source.html#l00127">wGui::CRect::Width()</a>, and <a class="el" href="wg__point_8h-source.html#l00067">wGui::CPoint::YPos()</a>.<p>Referenced by <a class="el" href="wg__menu_8cpp-source.html#l00626">ShowActivePopup()</a>, and <a class="el" href="wg__menu_8cpp-source.html#l00341">wGui::CMenu::ShowActivePopup()</a>. </td> </tr></table><a name="b1" doxytag="wGui::CPopupMenu::ShowActivePopup"></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::CPopupMenu::ShowActivePopup </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="mdname" nowrap> <em>ParentRect</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classwGui_1_1CRect.html">CRect</a> & </td> <td class="mdname" nowrap> <em>BoundingRect</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [protected, virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Check to see where it will fit, then show the popup menu <dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>ParentRect</em> </td><td>A <a class="el" href="classwGui_1_1CRect.html">CRect</a> that defines the dimensions of the item that is spawning the popup </td></tr><tr><td valign=top><em>BoundingRect</em> </td><td>A <a class="el" href="classwGui_1_1CRect.html">CRect</a> that defines the boundaries the popup has to fit in </td></tr></table></dl><p>Implements <a class="el" href="classwGui_1_1CMenuBase.html#b1">wGui::CMenuBase</a>.<p>Definition at line <a class="el" href="wg__menu_8cpp-source.html#l00626">626</a> of file <a class="el" href="wg__menu_8cpp-source.html">wg_menu.cpp</a>.<p>References <a class="el" href="wg__window_8h-source.html#l00062">wGui::CWindow::GetWindowRect()</a>, <a class="el" href="wg__rect_8cpp-source.html#l00167">wGui::CRect::HitTest()</a>, <a class="el" href="wg__menu_8h-source.html#l00136">wGui::CMenuBase::m_pActivePopup</a>, <a class="el" href="wg__menu_8cpp-source.html#l00384">Show()</a>, <a class="el" href="wg__rect_8h-source.html#l00094">wGui::CRect::TopLeft()</a>, <a class="el" href="wg__rect_8h-source.html#l00097">wGui::CRect::TopRight()</a>, and <a class="el" href="wg__rect_8h-source.html#l00127">wGui::CRect::Width()</a>.<p>Referenced by <a class="el" href="wg__menu_8cpp-source.html#l00538">HandleMessage()</a>, and <a class="el" href="wg__menu_8cpp-source.html#l00501">OnMouseButtonDown()</a>. </td> </tr></table><hr><h2>Field Documentation</h2><a name="n0" doxytag="wGui::CPopupMenu::m_pParentMenu"></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"> <a class="el" href="classwGui_1_1CMenu.html">CMenu</a>* wGui::CPopupMenu::m_pParentMenu<code> [protected]</code> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>This is a pointer to the <a class="el" href="classwGui_1_1CMenu.html">CMenu</a> that acts as parent for the popup, though it's not actually the parent, because the parent for root popups should be the <a class="el" href="classwGui_1_1CView.html">CView</a> <p>Definition at line <a class="el" href="wg__menu_8h-source.html#l00269">269</a> of file <a class="el" href="wg__menu_8h-source.html">wg_menu.h</a>.<p>Referenced by <a class="el" href="wg__menu_8cpp-source.html#l00538">HandleMessage()</a>, <a class="el" href="wg__menu_8cpp-source.html#l00501">OnMouseButtonDown()</a>, and <a class="el" href="wg__menu_8h-source.html#l00237">SetParentMenu()</a>. </td> </tr></table><hr>The documentation for this class was generated from the following files:<ul><li><a class="el" href="wg__menu_8h-source.html">wg_menu.h</a><li><a class="el" href="wg__menu_8cpp-source.html">wg_menu.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 + -