www.pudn.com > roll.rar > FIGURE.H
// Figure.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CFigure window
class CFigure : public CWnd
{
CString filename;
// Construction
public:
CFigure(CString filen="");
// Attributes
public:
void SetFileName(CString filen)
{ filename=filen; }
CString GetFileName()
{ return filename; }
void DrawRollerData(CDC* dc);
void DrawRollerTranData(CDC* dc);
void DrawRoller(CDC* dc);
void DrawRollerTran(CDC* dc);
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFigure)
public:
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
protected:
virtual BOOL OnCommand(WPARAM wParam, LPARAM lParam);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CFigure();
// Generated message map functions
protected:
//{{AFX_MSG(CFigure)
afx_msg void OnPaint();
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
WPARAM Type;
};
/////////////////////////////////////////////////////////////////////////////