void CTripleLinkageOpt::OnLButtonDown(const CPoint& point) { int nRet = GetFocusThumb(point); if(nRet != -1) // begin to drag? { m_nFocusThumb = nRet; if( m_nFocusThumb == FOCUS_ON_TOPLEFT || m_nFocusThumb == FOCUS_ON_RIGHTBTM) //single button模式 两个从属的不能拖动 { return; } m_bStartDraging = TRUE; //HWND hwnd = SetCapture(AfxGetApp()->GetMainWnd()->); } else { if( m_nFocusThumb == FOCUS_ON_TOPLEFT || m_nFocusThumb == FOCUS_ON_RIGHTBTM) //single button模式 两个从属的不能拖动 { return; } MovePage(point); ReCalcChannelRect(); } }
void CMultiThumbOpt::OnLButtonDown(const CPoint& point) { int nRet = GetFocusThumb(point); if(nRet != -1) // begin to drag? { m_nFocusThumb = nRet; m_bStartDraging = TRUE; //HWND hwnd = SetCapture(AfxGetApp()->GetMainWnd()->); } else { MovePage(point); ReCalcChannelRect(); } }