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