dvdbitmapcontrol.h
来自「rle静态图片压缩DELPHI代码,可以对DEPHI程序员了解有很大帮助」· C头文件 代码 · 共 69 行
H
69 行
#if !defined(AFX_DVDBITMAPCONTROL_H__C6545A9D_4F90_4526_BE60_05ADED734009__INCLUDED_)
#define AFX_DVDBITMAPCONTROL_H__C6545A9D_4F90_4526_BE60_05ADED734009__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DVDBitmapControl.h : header file
//
struct _8Bit_BITMAPINFO
{
BITMAPINFO bmi; // contains the first color
RGBQUAD color_table[255]; // color table
};
/////////////////////////////////////////////////////////////////////////////
// CDVDBitmapControl window
class CDVDBitmapControl : public CStatic
{
// Construction
public:
CDVDBitmapControl::CDVDBitmapControl();
// Attributes
public:
// Operations
public:
BOOL LoadBitmapFile(CString);
BOOL SaveBitmapFile(CString filename);
SIZE GetBitmapSize();
BOOL CompareWithFile(CString filename);
void CompressInRLE8(BYTE* pSrcBits, CByteArray& pRLE_Bits, int& RLE_size);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDVDBitmapControl)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CDVDBitmapControl();
// Generated message map functions
protected:
//{{AFX_MSG(CDVDBitmapControl)
afx_msg void OnPaint();
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
// this bitmap is the standard DVD bitmap
CDC m_dc;
HBITMAP m_hbm, m_hbm_default;
DIBSECTION m_dib;
BOOL EndOfLine(int pos);
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DVDBITMAPCONTROL_H__C6545A9D_4F90_4526_BE60_05ADED734009__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?