1 
2 #include <afxcview.h>
3 
4 #define VIEW_HEADER_HEIGHT 28
5 
6 class view_header : public CWnd
7 {
8     public:
9         view_header(char *title, int icon_id);
10 
11     protected:
12         void FillHeader(CDC *dc, int y, int xstart, int xend);
13         void PaintIcon(CDC *dc, int x, int y);
14         void PaintRightIcon(CDC *dc, int icon_id, CRect &size);
15 
16 
17         afx_msg void OnPaint();
18     	DECLARE_MESSAGE_MAP()
19         CString m_title;
20 
21         int m_icon_id;
22         int m_icon_height;
23         int m_icon_width;
24         int m_icon_src_width;
25         int m_icon_src_height;
26         CBitmap m_left_bmp;
27 };
28