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

📄 dvdbitmapcontrol.h

📁 rle静态图片压缩DELPHI代码,可以对DEPHI程序员了解有很大帮助
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -