⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mainfrm.h

📁 《Visual C++ Bible》或者说是《Visual C++ 宝典》的对应的源码文件
💻 H
字号:
// mainfrm.h : interface of the DMainFrame class
//
/////////////////////////////////////////////////////////////////////////////


const int MAX_COLORS = 8;

// 16-color device support
const COLORREF g_crBlack     = RGB(  0,  0,  0);
const COLORREF g_crYellow    = RGB(255,255,  0);
const COLORREF g_crDkYellow  = RGB(128,128,  0);
const COLORREF g_crRed       = RGB(255,  0,  0);
const COLORREF g_crDkRed     = RGB(128,  0,  0);
const COLORREF g_crMagenta   = RGB(255,  0,255);
const COLORREF g_crDkMagenta = RGB(128,  0,128);
const COLORREF g_crBlue      = RGB(  0,  0,255);
const COLORREF g_crDkBlue    = RGB(  0,  0,128);
const COLORREF g_crCyan      = RGB(  0,255,255);
const COLORREF g_crDkCyan    = RGB(  0,128,128);
const COLORREF g_crGreen     = RGB(  0,255,  0);
const COLORREF g_crDkGreen   = RGB(  0,128,  0);
const COLORREF g_crGray      = RGB(192,192,192);
const COLORREF g_crDkGray    = RGB(128,128,128);
const COLORREF g_crWhite     = RGB(255,255,255);

// Additional four colors for displays with more than 16 colors.
const COLORREF g_crLtYellow  = RGB(255,251,240);
const COLORREF g_crLtGreen   = RGB(192,220,192);
const COLORREF g_crLtBlue    = RGB(166,202,240);
const COLORREF g_crMedGray   = RGB(160,160,164);

class DMainFrame : public CFrameWnd
{
public:
	DMainFrame();
protected: // create from serialization only
	DECLARE_DYNCREATE(DMainFrame)

// Attributes
public:
    int iNextColor;                      // Index of next color to select.
    COLORREF crBackground[MAX_COLORS];   // Table of colors.
	LPCTSTR lpszClassName;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(DMainFrame)
	protected:
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	//}}AFX_VIRTUAL

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

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

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

⌨️ 快捷键说明

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