1 #if !defined(AFX_RESIZABLECOMBOBOX_H__CAEDF06D_C4F5_49E4_A783_AD7D894CF9A0__INCLUDED_)
2 #define AFX_RESIZABLECOMBOBOX_H__CAEDF06D_C4F5_49E4_A783_AD7D894CF9A0__INCLUDED_
6 #endif // _MSC_VER > 1000
8 // ResizableComboBox.h : header file
10 /////////////////////////////////////////////////////////////////////////////
12 // Copyright (C) 2000-2004 by Paolo Messina
13 // (http://www.geocities.com/ppescher - ppescher@hotmail.com)
15 // The contents of this file are subject to the Artistic License (the "License").
16 // You may not use this file except in compliance with the License.
17 // You may obtain a copy of the License at:
18 // http://www.opensource.org/licenses/artistic-license.html
20 // If you find this code useful, credits would be nice!
22 /////////////////////////////////////////////////////////////////////////////
24 #include "ResizableComboLBox.h"
26 /////////////////////////////////////////////////////////////////////////////
27 // CResizableComboBox window
29 class CResizableComboBox
: public CComboBox
31 friend class CResizableComboLBox
;
41 CResizableComboLBox m_ctrlListBox
;
47 // ClassWizard generated virtual function overrides
48 //{{AFX_VIRTUAL(CResizableComboBox)
50 virtual LRESULT
WindowProc(UINT message
, WPARAM wParam
, LPARAM lParam
);
51 virtual void PreSubclassWindow();
56 virtual ~CResizableComboBox();
60 BOOL m_bClipMaxHeight
;
61 BOOL m_bIntegralHeight
;
64 void InitHorizontalExtent();
65 void UpdateHorizontalExtent(LPCTSTR szText
);
66 int MakeIntegralHeight(const int height
);
68 // Generated message map functions
70 //{{AFX_MSG(CResizableComboBox)
71 afx_msg HBRUSH
OnCtlColor(CDC
* pDC
, CWnd
* pWnd
, UINT nCtlColor
);
77 /////////////////////////////////////////////////////////////////////////////
79 //{{AFX_INSERT_LOCATION}}
80 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
82 #endif // !defined(AFX_RESIZABLECOMBOBOX_H__CAEDF06D_C4F5_49E4_A783_AD7D894CF9A0__INCLUDED_)