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

📄 palette1.h

📁 是一本很经典的书
💻 H
字号:
///////////////////////////////////////////////////////////////////
//  Header  : PALETTE1.H
//
//  Purpose : Header for the PALETTE1 MFC program.
//
//  Author  : Rob McGregor, rob_mcgregor@compuserve.com
//        
//  Date    : 05-29-96
///////////////////////////////////////////////////////////////////

// Custom frame window base class
#include "..\..\chap12\mainfram\mainfram.cpp"   

// Derive an application class 
class CPaletteApp : public CWinApp
{ 
public: 
   virtual BOOL InitInstance();
};

// Derive a frame window class 
class CMainWnd : public CMainFrame
{ 
protected:
   LPLOGPALETTE m_pLP;
   CPalette     m_pal;

public: 
   CMainWnd();
   ~CMainWnd();

   void Display4WayPalette(CPaintDC* pDC, CPalette& pal);
   void Fill4WayPalette();
   afx_msg void OnPaint();
   afx_msg BOOL OnQueryNewPalette();
   afx_msg void OnPaletteChanged(CWnd* pFocusWnd);

   DECLARE_MESSAGE_MAP();
};

⌨️ 快捷键说明

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