49 lines
1.2 KiB
C++
49 lines
1.2 KiB
C++
// combobar.h : interface of the CTBComboBox and CComboToolBar class
|
|
//
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#include "ToolBarEx.h"
|
|
|
|
class CCB32View; // forward declaration
|
|
|
|
class CTBComboBox : public CComboBox
|
|
{
|
|
// Attributes
|
|
protected:
|
|
CFont m_font;
|
|
|
|
// Implementation
|
|
protected:
|
|
static int CALLBACK FontEnumProc(const LOGFONT *pLogFont,
|
|
const TEXTMETRIC *pTextMetric,
|
|
DWORD type, LPARAM pDestLogFont);
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CTBComboBox)
|
|
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|
|
|
|
class CComboToolBar : public CToolBarEx
|
|
{
|
|
// Attributes
|
|
public:
|
|
CTBComboBox m_toolBarCombo;
|
|
|
|
// Implementation
|
|
public:
|
|
CCB32View* GetView();
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
|
|
private:
|
|
int CheckIfHit(CPoint point);
|
|
|
|
protected:
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CComboToolBar)
|
|
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
|
//}}AFX_MSG
|
|
afx_msg void OnSelectEndOk();
|
|
afx_msg void OnSetFocus();
|
|
DECLARE_MESSAGE_MAP()
|
|
};
|