Example #1
0
	void CPlot::OnLButtonUp(UINT nFlag,CPoint point)
	{
		m_endPoint = point;
		ScaleProcess();	// 缩放处理
		OnPaint();		// 重绘
		TRACE("Left Button Up.Point Coordinate:x=%d,y=%d.\n",point.x,point.y);
		CStatic::OnLButtonUp(nFlag,point);
	}
Example #2
0
void TUI_CustomControl::Move   (TShiftState _Shift){
	switch(action){
	case etaSelect:	SelectProcess(_Shift); break;
	case etaAdd: 	AddProcess(_Shift);    break;
	case etaMove: 	MovingProcess(_Shift); break;
	case etaRotate:	RotateProcess(_Shift); break;
	case etaScale: 	ScaleProcess(_Shift);  break;
    }
}