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.

38 lines
903 B
C

1 month ago
#pragma once
#include "item.h"
namespace NItem
{
class CItemFocusRect :
public CItem
{
public:
CItemFocusRect(CSigmaDoc * ppDoc);
virtual ~CItemFocusRect(void);
protected:
CPoint2D c_down,c_last;
CRect m_oldRect;
BOOL m_bShiftDown;
int m_nDrawMode;//0Ϊ<30><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD>1Ϊֱ<CEAA><D6B1>ʽ<EFBFBD><CABD><32><CEAA><EFBFBD><EFBFBD>ʽ
void DrawMode(CDC *pDC, CRect8* pRect);
public:
void OnLButtonDown(CDC *pDC, UINT nFlags, CPoint point, int vk) override;
void OnLButtonUp(CDC *pDC, UINT nFlags, CPoint point, int vk) override;
int OnMouseMove(CDC *pDC, UINT nFlags, CPoint point) override;
BOOL OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags) override;
BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) override;
virtual void DoDrawOther(CDC* pDC, int nButton); //1=<3D><><EFBFBD><EFBFBD>DOWN,2=<3D><><EFBFBD><EFBFBD><EFBFBD>ƶ<EFBFBD>,3=<3D><><EFBFBD><EFBFBD>UP
virtual void DoLButtonUp(CDC *pDC);
CRect8 GetRect(void);
BOOL m_IsFocusing = FALSE;
BOOL IsTransformFirst = TRUE;
};
};