You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
|
#pragma once
|
|
|
|
|
|
#include <afxwin.h>
|
|
|
|
|
|
#include "HTrackerHandleCalculator.h"
|
|
|
|
|
|
|
|
|
|
|
|
class HTrackerDrawer
|
|
|
|
|
|
{
|
|
|
|
|
|
public:
|
|
|
|
|
|
HTrackerDrawer();
|
|
|
|
|
|
void SetRotateAndShearState(bool status);
|
|
|
|
|
|
void Draw(CDC * pDC, const CRect & boundRect);
|
|
|
|
|
|
void Reset();
|
|
|
|
|
|
private:
|
|
|
|
|
|
void DrawMarkRect(CDC * pDC);
|
|
|
|
|
|
void DrawHandleRect(CDC* pDC, CRect rect, BOOL bNoEditMark);
|
|
|
|
|
|
void DrawCenter(CDC * pDC, POINT center, bool bTrack);
|
|
|
|
|
|
void DrawMarkRotate(CDC* pDC);
|
|
|
|
|
|
void DrawCenterRotate(CDC * pDC, POINT center, bool bTrack);
|
|
|
|
|
|
private:
|
|
|
|
|
|
CRect m_boundRect;
|
|
|
|
|
|
COLORREF m_colorMark; //<2F><><EFBFBD><EFBFBD><EFBFBD>ε<EFBFBD><CEB5><EFBFBD>ɫ.Ĭ<><C4AC>Ϊdz<CEAA><C7B3>ɫ.
|
|
|
|
|
|
COLORREF m_colorHandles; //<2F>˸<EFBFBD>С<EFBFBD><D0A1><EFBFBD>ε<EFBFBD><CEB5><EFBFBD>ɫ.Ĭ<><C4AC>Ϊ<EFBFBD><CEAA>ɫ.
|
|
|
|
|
|
COLORREF m_colorCenter;
|
|
|
|
|
|
HTrackerHandleCalculator m_handleCalctor;
|
|
|
|
|
|
int m_HandleSize;
|
|
|
|
|
|
bool m_rotateAndShearState;
|
|
|
|
|
|
};
|