void CXTPRibbonBarZ::OnLButtonDblClk(UINT nFlags, CPoint point) { int nHit = HitTestCaption(point); if ((nHit == HTNOWHERE) && IsFrameThemeEnabled() && m_pContextHeaders->HitTest(point)) nHit = HTCAPTION; if (nHit == HTCAPTION || nHit == HTSYSMENU) { CWnd* pSite = GetSite(); ClientToScreen(&point); ::DefWindowProc(pSite->GetSafeHwnd(), WM_NCLBUTTONDBLCLK, nHit, MAKELPARAM(point.x, point.y)); return; } CXTPTabManagerItem* pItem = m_pControlTab->HitTest(point); if (pItem && pItem == GetSelectedTab() && m_bAllowMinimize) { if (IsRibbonMinimized()) { SetRibbonMinimized(FALSE); } else if (m_bMinimizeOnDblClick) { SetRibbonMinimized(TRUE); } m_bMinimizeOnDblClick = TRUE; } return; }
bool CGUITabPanel_Impl::Event_OnSelectionChanged ( const CEGUI::EventArgs& e ) { if ( m_OnSelectionChanged ) m_OnSelectionChanged ( reinterpret_cast < CGUIElement* > ( GetSelectedTab() ) ); return true; }