1 #if !defined(AFX_RESIZABLECOMBOLBOX_H__INCLUDED_)
\r
2 #define AFX_RESIZABLECOMBOLBOX_H__INCLUDED_
\r
6 #endif // _MSC_VER > 1000
\r
8 // ResizableComboLBox.h : header file
\r
10 /////////////////////////////////////////////////////////////////////////////
\r
12 // This file is part of ResizableLib
\r
13 // http://sourceforge.net/projects/resizablelib
\r
15 // Copyright (C) 2000-2004 by Paolo Messina
\r
16 // http://www.geocities.com/ppescher - mailto:ppescher@hotmail.com
\r
18 // The contents of this file are subject to the Artistic License (the "License").
\r
19 // You may not use this file except in compliance with the License.
\r
20 // You may obtain a copy of the License at:
\r
21 // http://www.opensource.org/licenses/artistic-license.html
\r
23 // If you find this code useful, credits would be nice!
\r
25 /////////////////////////////////////////////////////////////////////////////
\r
27 #include "ResizableGrip.h"
\r
29 /////////////////////////////////////////////////////////////////////////////
\r
30 // CResizableComboLBox window
\r
32 class CResizableComboBox;
\r
34 class CResizableComboLBox : public CWnd, public CResizableGrip
\r
36 friend class CResizableComboBox;
\r
40 CResizableComboLBox();
\r
49 // ClassWizard generated virtual function overrides
\r
50 //{{AFX_VIRTUAL(CResizableComboLBox)
\r
52 virtual void PreSubclassWindow();
\r
53 virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
\r
58 virtual ~CResizableComboLBox();
\r
61 CPoint m_ptBeforeSizing; // screen coords
\r
62 CRect m_rcBeforeSizing; // screen coords
\r
63 CSize m_sizeAfterSizing; // screen coords
\r
64 LONG_PTR m_nHitTest; // current resize operation
\r
67 void InitializeControl();
\r
70 DWORD m_dwAddToStyle;
\r
71 DWORD m_dwAddToStyleEx;
\r
72 CSize m_sizeMin; // initial size (minimum)
\r
73 CResizableComboBox* m_pOwnerCombo; // owner combobox
\r
75 void ApplyLimitsToPos(WINDOWPOS* lpwndpos);
\r
80 virtual CWnd* GetResizableWnd() const
\r
82 // make the layout know its parent window
\r
83 return CWnd::FromHandle(m_hWnd);
\r
86 // Generated message map functions
\r
88 //{{AFX_MSG(CResizableComboLBox)
\r
89 afx_msg void OnMouseMove(UINT nFlags, CPoint point);
\r
90 afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
\r
91 afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
\r
93 afx_msg UINT OnNcHitTest(CPoint point);
\r
95 afx_msg LRESULT OnNcHitTest(CPoint point);
\r
97 afx_msg void OnCaptureChanged(CWnd *pWnd);
\r
98 afx_msg void OnWindowPosChanging(WINDOWPOS FAR* lpwndpos);
\r
99 afx_msg void OnWindowPosChanged(WINDOWPOS FAR* lpwndpos);
\r
102 DECLARE_MESSAGE_MAP()
\r
105 /////////////////////////////////////////////////////////////////////////////
\r
107 //{{AFX_INSERT_LOCATION}}
\r
108 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
\r
110 #endif // !defined(AFX_RESIZABLECOMBOLBOX_H__INCLUDED_)
\r