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

📄 backlistbox.h

📁 c++系统开发实例精粹内附的80例源代码 环境:windows2000,c++6.0
💻 H
字号:
//////////////////////////////////////////////////////////////////////
// FileFury
// Copyright (c) 2000 Tenebril Incorporated
// All rights reserved.
//
// This source code is governed by the Tenebril open source
// license (http://www.tenebril.com/developers/opensource/license.html)
//
// For more information on this and other open source applications,
// visit the Tenebril OpenSource page:
//       http://www.tenebril.com/developers/opensource
//
//////////////////////////////////////////////////////////////////////

#ifndef BACKLISTBOX_INCLUDE
#define BACKLISTBOX_INCLUDE

class CBackListBox : public CListCtrl
{
public:
	void SetRedraw();
	CBackListBox();
	~CBackListBox();

	BOOL Create(DWORD dwStyle, const RECT &rect, CWnd* ParentWnd, UINT ID,
		UINT BackBmp, CSize bmpsize);

protected:
	CSize m_cOldSize;
	CBitmap *m_pOldCacheBmp;
	CBitmap *m_pCacheBmp;
	CDC m_CacheDC;
	BOOL m_bHasBuiltCache;
	BOOL m_bShouldRedraw;
	CSize m_cBmpSize;
	COLORREF TextColor, BackColor;
	CBitmap BackBitmap;
	CWnd *ParentWindow;
	bool PaintingBackground, InitBackDC;
	CDC BackDC;

	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	afx_msg void OnPaint();
	afx_msg void OnLButtonDown( UINT nFlags, CPoint point );
	afx_msg void OnRButtonDown( UINT nFlags, CPoint point );

	void PaintBackground(CDC *DC, bool JustBackground = false);

	DECLARE_MESSAGE_MAP()
};

#endif

⌨️ 快捷键说明

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