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.
26 lines
540 B
C++
26 lines
540 B
C++
#pragma once
|
|
#include <afxwin.h>
|
|
|
|
class HTrackerHandleCalculator
|
|
{
|
|
public:
|
|
HTrackerHandleCalculator();
|
|
void Calculate(const CRect & boundRect);
|
|
CRect GetHandleRect(int iHandle);
|
|
CPoint GetHandlePoint(int iHandle);
|
|
POINT GetCenterPoint();
|
|
void Reset();
|
|
POINT Test(int i);
|
|
private:
|
|
CPoint GetHandlePoint(LPPOINT pPoints, int iHandle);
|
|
private:
|
|
//m_Points[0]:LeftTop
|
|
//m_Points[1]:RightTop
|
|
//m_Points[2]:RightBottom
|
|
//m_Points[3]:LeftBottom
|
|
//m_Points[4]:Center
|
|
POINT m_Points[5];
|
|
int m_HandleSize;
|
|
};
|
|
|