OAMTABCTRL.H
上传用户:shgx688
上传日期:2009-12-27
资源大小:855k
文件大小:2k
源码类别:

SNMP编程

开发平台:

MultiPlatform

  1. #if !defined(AFX_OAMTABCTRL_H__A2393D57_1587_11D3_BAC0_12345600558E__INCLUDED_)
  2. #define AFX_OAMTABCTRL_H__A2393D57_1587_11D3_BAC0_12345600558E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // OAMTabCtrl.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // COAMTabCtrl window
  10. class COAMTabCtrl : public CTabCtrl
  11. {
  12. // Construction
  13. public:
  14. COAMTabCtrl();
  15. // Attributes
  16. public:
  17. protected:
  18. COLORREF m_crSelColour, m_crUnselColour;
  19. CFont    m_SelFont, m_UnselFont;
  20. // Operations
  21. public:
  22. void SetFonts(CFont* pSelFont, CFont* pUnselFont);
  23. void SetFonts(int nSelWeight=FW_SEMIBOLD, BOOL bSelItalic=FALSE,   BOOL bSelUnderline=FALSE,
  24.   int nUnselWeight=FW_MEDIUM, BOOL bUnselItalic=FALSE, BOOL bUnselUnderline=FALSE);
  25. void SetColours(COLORREF bSelColour, COLORREF bUnselColour);
  26. // Overrides
  27. // ClassWizard generated virtual function overrides
  28. //{{AFX_VIRTUAL(COAMTabCtrl)
  29. public:
  30. virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
  31. protected:
  32. virtual void PreSubclassWindow();
  33. virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
  34. //}}AFX_VIRTUAL
  35. // Implementation
  36. public:
  37. void ResizeTabs();
  38. virtual ~COAMTabCtrl();
  39. // Generated message map functions
  40. protected:
  41. //{{AFX_MSG(COAMTabCtrl)
  42. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  43. afx_msg void OnSize(UINT nType, int cx, int cy);
  44. //}}AFX_MSG
  45. DECLARE_MESSAGE_MAP()
  46. };
  47. /////////////////////////////////////////////////////////////////////////////
  48. //{{AFX_INSERT_LOCATION}}
  49. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  50. #endif // !defined(AFX_OAMTABCTRL_H__A2393D57_1587_11D3_BAC0_12345600558E__INCLUDED_)