mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.1 KiB
55 lines
1.1 KiB
// Magnify.h : header file
|
|
//
|
|
#ifndef _MAGNIFY_H_
|
|
#define _MAGNIFY_H_
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CMagnify window
|
|
|
|
class CMagnify : public CWnd
|
|
{
|
|
// Construction
|
|
public:
|
|
CMagnify();
|
|
|
|
// Attributes
|
|
public:
|
|
|
|
BOOL CreateMagnifyWindow(CWnd* pImageEdit, long left, long top, float Zoom, int Width, int Height);
|
|
BOOL DestroyMagnifyWindow();
|
|
short ShiftState();
|
|
|
|
int m_OIZoom;
|
|
CWnd* m_pImageEdit;
|
|
long m_MagnifierWidth;
|
|
long m_MagnifierHeight;
|
|
long m_Left;
|
|
long m_Top;
|
|
long m_MagnifierLeft;
|
|
long m_MagnifierTop;
|
|
CPoint m_MouseMovePoint;
|
|
BOOL m_bFirstMouseMovePos;
|
|
|
|
// Operations
|
|
public:
|
|
|
|
// Overrides
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CMagnify)
|
|
//}}AFX_VIRTUAL
|
|
|
|
// Implementation
|
|
public:
|
|
virtual ~CMagnify();
|
|
|
|
// Generated message map functions
|
|
protected:
|
|
//{{AFX_MSG(CMagnify)
|
|
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
|
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
#endif
|
|
/////////////////////////////////////////////////////////////////////////////
|