📄 doclistcombobox.h
字号:
#if !defined(AFX_DOCLISTCOMBOBOX_H__02C33048_6E58_4E9D_8981_C953BCE66113__INCLUDED_)
#define AFX_DOCLISTCOMBOBOX_H__02C33048_6E58_4E9D_8981_C953BCE66113__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// DocListComboBox.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CDocListComboBox window
class CDocListComboBox : public CStatic
{
// Construction
public:
CDocListComboBox();
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDocListComboBox)
//}}AFX_VIRTUAL
// Implementation
public:
void SetAlign(BOOL bLeftAlign);
void SetSelectedText(const CString &strSelectedText);
void SetTitleText(const CString &strTitleText);
BOOL SetDropDownMenu(UINT nIDResource);
BOOL SetDropDownMenu(CMenu *pMenuOwner);
void TrackDropDown();
virtual ~CDocListComboBox();
// Generated message map functions
protected:
int GetLeftAlignShift();
BOOL m_bLeftAlign;
CMenu *m_pMenuOwner;
CString m_strSelectedText;
BOOL m_bDownState;
int m_nLeftShift;
int m_nIconWidth;
int m_nTestWidth;
int m_nDownWidth;
void DrawDownIcon(CDC *pDC);
COLORREF m_clrBackground;
BOOL m_bBorderState;
void CreateFont(CFont &font);
CString m_strCurrentText;
CString m_strTitle;
//{{AFX_MSG(CDocListComboBox)
afx_msg void OnPaint();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DOCLISTCOMBOBOX_H__02C33048_6E58_4E9D_8981_C953BCE66113__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -