xpcombobox.h
来自「用bcg库编写的java IDE 源码」· C头文件 代码 · 共 97 行
H
97 行
#if !defined(AFX_XPCOMBOBOX_H__5829FC7D_DAF9_4FD6_A78A_4F3ACEE358AE__INCLUDED_)
#define AFX_XPCOMBOBOX_H__5829FC7D_DAF9_4FD6_A78A_4F3ACEE358AE__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// XPComboBox.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CXPComboBox window
#include "XPDrawLayer.h"
class BCGCONTROLBARDLLEXPORT CXPComboBox : public CComboBox
{
LOGFONT m_logCBFont;
COLORREF m_crfCBTextColor;
// Construction
public:
CXPComboBox();
~CXPComboBox();
// Attributes
public:
// Operations
// Operations
public:
enum enTypeShow{CM_NORMAL=0,CM_ONFOCUS,CM_SELECCIONADO};
public:
BOOL m_bOverCombo;
int m_iWidthDrowDown;
COLORREF m_clrBtnFace;
COLORREF m_clrBtnLight;
COLORREF m_clrBtnDark;
CFont m_Font;
BOOL m_bPress;
BOOL m_bFondoXp;
BOOL m_IsCallMiniTool;
BOOL bhistory;
public:
//******************************************************
void DrawCombo(enTypeShow enShow,CDC* pDC);
void DrawArrow(CDC* pDC,CRect m_rc);
void SetColor(COLORREF clrFace);
void AutoColor(BOOL bColor=TRUE);
virtual void PreSubclassWindow();
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
int AddString(LPCTSTR szpText,int iImage = -1);
void SetImageList(CImageList* pImageList){m_pImageList = pImageList;}
int GetImage(LPCTSTR);
int DeleteString(UINT nIndex);
void ResetContent();
void DeleteImage(LPCTSTR lszpString);
void SetCBTextColor(COLORREF color){m_crfCBTextColor = color;}
void SetCBFont(LOGFONT lgFont){m_logCBFont = lgFont;}
// Generated message map functions
protected:
CImageList m_imgArrow; //imagen arrow
CPoint mHeight;
GuiDrawLayer m_dw;
BOOL bColor;
CImageList *m_pImageList;
CMap<LPCTSTR,LPCTSTR&,int,int&> m_iImageStringMap;
protected:
//{{AFX_MSG(CGuiComboFont)
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnPaint();
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg void OnTimer(UINT nIDEvent);
//afx_msg void OnKillFocus(CWnd* pNewWnd);
afx_msg void OnCbnKillfocus();//version 7.0
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSetFocus(CWnd* pOldWnd);
afx_msg void OnSysColorChange( );
afx_msg void OnCloseup();
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
virtual void MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct);
DECLARE_MESSAGE_MAP()
afx_msg void OnCbnEditupdate();
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_XPCOMBOBOX_H__5829FC7D_DAF9_4FD6_A78A_4F3ACEE358AE__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?