📄 ownerdrawnedcombo.h
字号:
#if !defined(AFX_OWNERDRAWNEDCOMBO_H__9CA31331_C9DE_4DD0_9B2B_B381AEEFC417__INCLUDED_)
#define AFX_OWNERDRAWNEDCOMBO_H__9CA31331_C9DE_4DD0_9B2B_B381AEEFC417__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// OwnerDrawnedCombo.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// COwnerDrawnedCombo window
class COwnerDrawnedCombo : public CComboBox
{
struct __color
{
COLORREF m_nColor;
};
// Construction
public:
COwnerDrawnedCombo();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COwnerDrawnedCombo)
public:
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
void SelectColor(COLORREF crSel,DWORD nID);
COLORREF GetItemColor(int nIndex);
void SetColorData(int nIndex,COLORREF nColor);
virtual ~COwnerDrawnedCombo();
// Generated message map functions
protected:
//{{AFX_MSG(COwnerDrawnedCombo)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_OWNERDRAWNEDCOMBO_H__9CA31331_C9DE_4DD0_9B2B_B381AEEFC417__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -