TColumnBitmap.h
上传用户:louyoung
上传日期:2007-01-02
资源大小:123k
文件大小:1k
源码类别:
ActiveX/DCOM/ATL
开发平台:
Visual C++
- /************************************
- REVISION LOG ENTRY
- Revision By: Mihai Filimon
- Revised on 6/20/98 2:46:25 PM
- Comments: TColumnBitmap.h: interface for the CTColumnBitmap class.
- ************************************/
- #if !defined(AFX_TCOLUMNBITMAP_H__1CED3233_E31B_11D1_85EB_0040055C08D9__INCLUDED_)
- #define AFX_TCOLUMNBITMAP_H__1CED3233_E31B_11D1_85EB_0040055C08D9__INCLUDED_
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- class CTColumnBitmap
- {
- public:
- int GetWidth();
- int GetHeight();
- virtual void Put(int nColumn, CDC * pDC, int x, int y, int dxMax);
- static COLORREF m_crMaskedColor;
- CBitmap* GetBitmap();
- BOOL IsLoad() const;
- CRect GetRectImage(int nColumn);
- void Init(int nImageWidth, int nImageHeight, int nRowImage);
- CTColumnBitmap();
- CTColumnBitmap(UINT nIDResource, int nImageWidth = 14, int nImageHeight = 14, int nRowImage = 0);
- virtual ~CTColumnBitmap();
- protected:
- int m_nImageWidth;
- int m_nImageHeight;
- private:
- BOOL m_bLoad;
- CBitmap m_bitmap;
- int m_nRowImage;
- };
- class CTCellIcon : public CTColumnBitmap
- {
- public:
- CTCellIcon(HICON hIcon, BOOL bBigIcon);
- virtual void Put(int nColumn, CDC * pDC, int x, int y, int dxMax);
- virtual ~CTCellIcon();
- public:
- HICON m_hIcon;
- BOOL m_bBigIcon;
- };
- #endif // !defined(AFX_TCOLUMNBITMAP_H__1CED3233_E31B_11D1_85EB_0040055C08D9__INCLUDED_)