00001 #if !defined(AFX_PANELCONTROL_H__75C3B0E8_2527_43AC_98ED_65FA493289CD__INCLUDED_)
00002 #define AFX_PANELCONTROL_H__75C3B0E8_2527_43AC_98ED_65FA493289CD__INCLUDED_
00003
00004 #if _MSC_VER > 1000
00005 #pragma once
00006 #endif // _MSC_VER > 1000
00007
00008
00009
00011
00012
00013 #define bvNone 0
00014 #define bvRaised 1
00015 #define bvLowered 2
00016
00017 class CPanelControl : public CStatic
00018 {
00019
00020 public:
00021 CPanelControl();
00022
00023
00024 public:
00025 int m_nBevelInner;
00026 int m_nBevelOuter;
00027 int m_nBevelWidth;
00028 int m_nBevelBorder;
00029
00030 CFont fontNormal;
00031
00032 CString m_strName;
00033
00034 void DrawBorder(CDC & dc, CRect & rect, CPen & pen0, CPen & pen1, int nWidth);
00035
00036
00037 public:
00038
00039
00040
00041
00042 protected:
00043 virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
00044
00045
00046
00047 public:
00048 virtual ~CPanelControl();
00049
00050
00051 protected:
00052
00053 afx_msg void OnPaint();
00054 afx_msg void OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp);
00055
00056
00057 DECLARE_MESSAGE_MAP()
00058 };
00059
00061
00062
00063
00064
00065 #endif // !defined(AFX_PANELCONTROL_H__75C3B0E8_2527_43AC_98ED_65FA493289CD__INCLUDED_)