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