This repository has been archived on 2024-03-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
ContactBook/ComboBar.h
2024-03-20 09:28:18 -05:00

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()
};