CB32 1.2 sources
This commit is contained in:
parent
cf25bc7627
commit
fd87f89a19
100 changed files with 14543 additions and 0 deletions
49
ComboBar.h
Normal file
49
ComboBar.h
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
// 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()
|
||||
};
|
||||
Reference in a new issue