propertybar.h
来自「故障诊断工作涉及的领域相当广泛」· C头文件 代码 · 共 156 行
H
156 行
#if !defined(AFX_PROPERTYBAR_H__07598702_BD43_11CF_BF56_B29AF85F4C3B__INCLUDED_)
#define AFX_PROPERTYBAR_H__07598702_BD43_11CF_BF56_B29AF85F4C3B__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// PropertyBar.h : header file
//
class CLineTypeData
{
public:
int m_nLineType;
CString m_strName;
public:
CLineTypeData(int nLineType, char* pLineTypeName)
:m_nLineType(nLineType) ,m_strName(pLineTypeName)
{};
void DrawItem(CDC* pDC,const CRect& rc,BOOL bSelected);
};
/////////////////////////////////////////////////////////////////////////////
// CLineTypeCmb window
class CLineTypeCmb : public CComboBox
{
// Construction
public:
CLineTypeCmb();
// Attributes
public:
// Operations
public:
int AddItem(int nLineType, char* pszName);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CLineTypeCmb)
public:
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
virtual void DeleteItem(LPDELETEITEMSTRUCT lpDeleteItemStruct);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CLineTypeCmb();
// Generated message map functions
protected:
//{{AFX_MSG(CLineTypeCmb)
afx_msg void OnSelchange();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
class CColorData
{
public:
COLORREF m_rgbColor;
CString m_strName;
public:
CColorData(COLORREF rgbColor, char* pColorName)
:m_rgbColor(rgbColor) ,m_strName(pColorName)
{};
void DrawItem(CDC* pDC,const CRect& rc,BOOL bSelected);
};
/////////////////////////////////////////////////////////////////////////////
// CColorCmb window
class CColorCmb : public CComboBox
{
// Construction
public:
CColorCmb();
// Attributes
public:
// Operations
public:
int AddItem(COLORREF rgbColor, char* pszName);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CColorCmb)
public:
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
virtual void DeleteItem(LPDELETEITEMSTRUCT lpDeleteItemStruct);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CColorCmb();
// Generated message map functions
protected:
//{{AFX_MSG(CColorCmb)
afx_msg void OnSelchange();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// CPropertyBar window
class CPropertyBar : public CToolBar
{
// Construction
public:
CPropertyBar();
// Attributes
public:
CLineTypeCmb m_wndLineTypeCmb;
CColorCmb m_wndColorCmb;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPropertyBar)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CPropertyBar();
// Generated message map functions
protected:
//{{AFX_MSG(CPropertyBar)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PROPERTYBAR_H__07598702_BD43_11CF_BF56_B29AF85F4C3B__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?