OAMTABCTRL.H
资源名称:SNMP范例源代码.zip [点击查看]
上传用户:shgx688
上传日期:2009-12-27
资源大小:855k
文件大小:2k
源码类别:
SNMP编程
开发平台:
MultiPlatform
- #if !defined(AFX_OAMTABCTRL_H__A2393D57_1587_11D3_BAC0_12345600558E__INCLUDED_)
- #define AFX_OAMTABCTRL_H__A2393D57_1587_11D3_BAC0_12345600558E__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // OAMTabCtrl.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // COAMTabCtrl window
- class COAMTabCtrl : public CTabCtrl
- {
- // Construction
- public:
- COAMTabCtrl();
- // Attributes
- public:
- protected:
- COLORREF m_crSelColour, m_crUnselColour;
- CFont m_SelFont, m_UnselFont;
- // Operations
- public:
- void SetFonts(CFont* pSelFont, CFont* pUnselFont);
- void SetFonts(int nSelWeight=FW_SEMIBOLD, BOOL bSelItalic=FALSE, BOOL bSelUnderline=FALSE,
- int nUnselWeight=FW_MEDIUM, BOOL bUnselItalic=FALSE, BOOL bUnselUnderline=FALSE);
- void SetColours(COLORREF bSelColour, COLORREF bUnselColour);
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(COAMTabCtrl)
- public:
- virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
- protected:
- virtual void PreSubclassWindow();
- virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void ResizeTabs();
- virtual ~COAMTabCtrl();
- // Generated message map functions
- protected:
- //{{AFX_MSG(COAMTabCtrl)
- afx_msg BOOL OnEraseBkgnd(CDC* pDC);
- afx_msg void OnSize(UINT nType, int cx, int cy);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_OAMTABCTRL_H__A2393D57_1587_11D3_BAC0_12345600558E__INCLUDED_)