Exemplo n.º 1
0
void CPanelWnd::OnNcLButtonDown(UINT nHitTest, CPoint point)
{
	if ( nHitTest == HTCAPTION && m_bGroupMode && m_pGroupParent )
	{
		PanelSizeLoop();
		return;
	}
	else if ( nHitTest == HTCAPTION && m_bPanelClose && m_pSkin == NULL )
	{
		if ( Settings.General.LanguageRTL )
		{
			CRect rc;
			GetWindowRect( &rc );
			point.x = 2 * rc.left + rc.Width() - point.x;
		}

		if ( m_rcClose.PtInRect( point ) )
		{
			PostMessage( WM_SYSCOMMAND, SC_CLOSE );
			return;
		}
	}

	CChildWnd::OnNcLButtonDown( nHitTest, point );
}
Exemplo n.º 2
0
void CPanelWnd::OnNcLButtonDown(UINT nHitTest, CPoint point)
{
	if ( nHitTest == HTCAPTION && m_bGroupMode && m_pGroupParent )
	{
		PanelSizeLoop();
		return;
	}
	else if ( nHitTest == HTCAPTION && m_bPanelClose && m_pSkin == NULL )
	{
		if ( m_rcClose.PtInRect( point ) )
		{
			PostMessage( WM_SYSCOMMAND, SC_CLOSE );
			return;
		}
	}

	CChildWnd::OnNcLButtonDown( nHitTest, point );
}