paletvw.h

来自「C:Documents and SettingsAdministrator桌面V」· C头文件 代码 · 共 65 行

H
65
字号
// paletvw.h : interface of the CPaletexpView class
//
/////////////////////////////////////////////////////////////////////////////

#define BLUE 1
#define RED 2
#define GREEN 3
#define PALSIZE 256

class CPaletexpView : public CView
{
protected: // create from serialization only
	CPaletexpView();
	DECLARE_DYNCREATE(CPaletexpView)

// Attributes
public:
	CPaletexpDoc* GetDocument();
	BOOL CPaletexpView::m_ChangePalette(int colors);

	CPalette palette[3];	//Holds new palettes.
	int newPalette;			//New palette index.

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPaletexpView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	protected:
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CPaletexpView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CPaletexpView)
	afx_msg void OnPaint();
	afx_msg void OnEditBlues();
	afx_msg void OnEditGreens();
	afx_msg void OnEditReds();
	afx_msg void OnEditPastel();
	afx_msg void OnEditBright();
	afx_msg void OnEditRainbow();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in paletvw.cpp
inline CPaletexpDoc* CPaletexpView::GetDocument()
   { return (CPaletexpDoc*)m_pDocument; }
#endif

/////////////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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