movewnd.h

来自「数据结构(C++版)的演示程序」· C头文件 代码 · 共 61 行

H
61
字号
#ifndef   __MoveWnd_h
#define   __MoveWnd_h


// MoveWnd.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CMoveWnd window

class CMoveWnd : public CWnd
{
protected:
    int m_IDC;
protected:
    COLORREF   m_BK_Color, m_HI_BColor, m_Text_Color, m_HI_TColor;
	UINT       m_Blank_Width, m_Blank_Heigh, m_Rect_Width, m_Rect_Heigh;
	CString    m_Blank_String;
	CBrush     *m_Brush;
    CRect      m_Origin_Rect;

// Construction
public:
	int        *m_pA, *m_ptemp;
	CMoveWnd(int IDC);
	int        m_from, m_to, m_Array_Num;
	BOOL       m_ResetWnd, m_Move_Flag, m_FromA_Flag, m_ToA_Flag;

// Attributes
public:
	void	SetMoveWnd(int *A, int *temp, int Array_Num);
	
// Operations
public:
	/*display a window picture */
	
protected:
    /* set picture display header*/

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CMoveWnd)
	public:
	virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CMoveWnd();

	// Generated message map functions
protected:
	//{{AFX_MSG(CMoveWnd)
	afx_msg void OnPaint();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?