void OnLButtonDown(HWND hWnd, UINT nFlags, POINTS p) { if (!bTracking) // See if we need to start a splitter drag { StartTracking(hWnd, SplitterHitTest(hWnd, p)); } }
void CSizingControlBar::OnNcLButtonDown(UINT nHitTest, CPoint point) { if (m_bTracking) return; if ((nHitTest == HTSIZE) && !IsFloating()) StartTracking(); else CControlBar::OnNcLButtonDown(nHitTest, point); }
void cbBarDragPlugin::OnDrawHintRect( cbDrawHintRectEvent& event ) { if ( !mpScrDc ) StartTracking(); DoDrawHintRect( event.mRect, event.mIsInClient ); if ( event.mLastTime ) FinishTracking(); }
void CSizingControlBar::OnNcLButtonDown(UINT nHitTest, CPoint point) { UNUSED_ALWAYS(point); if (m_bTracking || IsFloating()) return; if ((nHitTest >= HTSIZEFIRST) && (nHitTest <= HTSIZELAST)) StartTracking(nHitTest, point); // sizing edge hit }
void CSizableReBar::OnNcLButtonDown( UINT nHitTest, CPoint point ) { if ( !m_bTracking ) { if ( ( nHitTest >= HTSIZEFIRST ) && ( nHitTest <= HTSIZELAST ) ) { StartTracking( nHitTest, point ); } } }
void COXTabViewContainer::OnLButtonDown(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default CWnd::OnLButtonDown(nFlags, point); int hitTest=HitTest(point); if(hitTest>=0 && hitTest<GetPageCount() && hitTest!=GetActivePageIndex()) SetActivePageIndex(hitTest); else StartTracking(point); }
void CSizingControlBar::OnNcLButtonDown(UINT nHitTest, CPoint point) { if (IsFloating()) { baseCSizingControlBar::OnNcLButtonDown(nHitTest, point); return; } if (m_bTracking) return; if ((nHitTest >= HTSIZEFIRST) && (nHitTest <= HTSIZELAST)) StartTracking(nHitTest); // sizing edge hit }
void CCoolDialogBar::OnNcLButtonDown(UINT nHitTest, CPoint point) { if (m_bTracking) return; if((nHitTest == HTSYSMENU) && !IsFloating()) GetDockingFrame()->ShowControlBar(this, FALSE, FALSE); else if ((nHitTest == HTMINBUTTON) && !IsFloating()) m_pDockContext->ToggleDocking(); else if ((nHitTest == HTCAPTION) && !IsFloating() && (m_pDockBar != NULL)) { // start the drag ASSERT(m_pDockContext != NULL); m_pDockContext->StartDrag(point); } else if ((nHitTest == HTSIZE) && !IsFloating()) StartTracking(); else CControlBar::OnNcLButtonDown(nHitTest, point); }
XnStatus PoseUserSelector::DetectPose(XnUserID nUserId) { return StartTracking(nUserId); }
void cbHintAnimationPlugin::OnDrawHintRect( cbDrawHintRectEvent& event ) { if ( !mAnimStarted && !mpScrDc ) { StartTracking(); mPrevInClient = event.mIsInClient; mPrevRect = event.mRect; mStopPending = false; } if ( !event.mEraseRect ) { // pass on current hint-rect info to the animation "thread", in // order to make adjustments to the morph-target on-the-fly mCurRect.x = event.mRect.x; mCurRect.y = event.mRect.y; mCurRect.width = event.mRect.width; mCurRect.height = event.mRect.height; } // check the amount of change in the shape of hint, // and start morph-effect if change is "sufficient" int change = abs( mCurRect.width - mPrevRect.width ) + abs( mCurRect.height - mPrevRect.height ); if ( change > 10 && !event.mLastTime && !event.mEraseRect ) { if ( !mpAnimTimer ) mpAnimTimer = new cbHintAnimTimer(); // init the animation "thread", or reinit if already started mpAnimTimer->Init( this, mAnimStarted ); mAnimStarted = true; } else if ( !mAnimStarted ) { DoDrawHintRect( event.mRect, event.mIsInClient ); if ( event.mLastTime ) FinishTracking(); mPrevInClient = event.mIsInClient; } else { mCurInClient = event.mIsInClient; if ( event.mLastTime && mpAnimTimer ) { mStopPending = true; if ( mpAnimTimer->mPrevMorphed.x != POS_UNDEFINED ) // erase previous rect DoDrawHintRect( mpAnimTimer->mPrevMorphed, mPrevInClient ); } } mPrevRect = event.mRect; }