📄 coding.h
字号:
#if !defined(AFX_CODING_H__DE9DED4A_292C_11D6_B669_0010DCA65D26__INCLUDED_)
#define AFX_CODING_H__DE9DED4A_292C_11D6_B669_0010DCA65D26__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Coding.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CCoding window
#include "dib.h"
#include "ImgCompressDoc.h"
class CCoding : public CWnd
{
// Construction
public:
CCoding();
// Attributes
public:
// PCX文件头结构
typedef struct
{
BYTE bManufacturer;
BYTE bVersion;
BYTE bEncoding;
BYTE bBpp;
WORD wLeft;
WORD wTop;
WORD wRight;
WORD wBottom;
WORD wXResolution;
WORD wYResolution;
BYTE bPalette[48];
BYTE bReserved;
BYTE bPlanes;
WORD wLineBytes;
WORD wPaletteType;
WORD wSrcWidth;
WORD wSrcDepth;
BYTE bFiller[54];
}PCXHEADER;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCoding)
//}}AFX_VIRTUAL
// Implementation
public:
BOOL DIBToPCX(HDIB hDIB, CString strPath);
HDIB PCXToDIB(CString strPath);
virtual ~CCoding();
// Generated message map functions
protected:
CDIB m_clsDIB;
//{{AFX_MSG(CCoding)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_CODING_H__DE9DED4A_292C_11D6_B669_0010DCA65D26__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -