demo_paletteview.h

来自「可通过可执行文件中的使用颜色表和使用调色板在左方得到需要的颜色」· C头文件 代码 · 共 78 行

H
78
字号
// Demo_PaletteView.h : interface of the CDemo_PaletteView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_DEMO_PALETTEVIEW_H__DD850FEC_6B34_11D4_A41D_00001CD6203B__INCLUDED_)
#define AFX_DEMO_PALETTEVIEW_H__DD850FEC_6B34_11D4_A41D_00001CD6203B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Resource.h"

class CDemo_PaletteView : public CFormView
{
protected: // create from serialization only
	CDemo_PaletteView();
	DECLARE_DYNCREATE(CDemo_PaletteView)

public:
	//{{AFX_DATA(CDemo_PaletteView)
	enum { IDD = IDD_DEMO_PALETTE_FORM };
	int		m_nRed;
	int		m_nGreen;
	int		m_nBlue;
	//}}AFX_DATA

// Attributes
public:
	CDemo_PaletteDoc* GetDocument();
	//add
	CPalette* m_pPalette;
	COLORREF m_color;
	void OnView() ;
	int m_nFlag ;
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDemo_PaletteView)
	public:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void OnInitialUpdate(); // called first time after construct
	//}}AFX_VIRTUAL

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

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CDemo_PaletteView)
	afx_msg void OnColor();
	afx_msg void OnPalette();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in Demo_PaletteView.cpp
inline CDemo_PaletteDoc* CDemo_PaletteView::GetDocument()
   { return (CDemo_PaletteDoc*)m_pDocument; }
#endif

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DEMO_PALETTEVIEW_H__DD850FEC_6B34_11D4_A41D_00001CD6203B__INCLUDED_)

⌨️ 快捷键说明

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