OSDN Git Service

updated igit.exe (fixes for dir status etc)
[tortoisegit/TortoiseGitJp.git] / ext / ResizableLib / ResizableComboLBox.h
1 #if !defined(AFX_RESIZABLECOMBOLBOX_H__INCLUDED_)\r
2 #define AFX_RESIZABLECOMBOLBOX_H__INCLUDED_\r
3 \r
4 #if _MSC_VER > 1000\r
5 #pragma once\r
6 #endif // _MSC_VER > 1000\r
7 \r
8 // ResizableComboLBox.h : header file\r
9 //\r
10 /////////////////////////////////////////////////////////////////////////////\r
11 //\r
12 // This file is part of ResizableLib\r
13 // http://sourceforge.net/projects/resizablelib\r
14 //\r
15 // Copyright (C) 2000-2004 by Paolo Messina\r
16 // http://www.geocities.com/ppescher - mailto:ppescher@hotmail.com\r
17 //\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
22 //\r
23 // If you find this code useful, credits would be nice!\r
24 //\r
25 /////////////////////////////////////////////////////////////////////////////\r
26 \r
27 #include "ResizableGrip.h"\r
28 \r
29 /////////////////////////////////////////////////////////////////////////////\r
30 // CResizableComboLBox window\r
31 \r
32 class CResizableComboBox;\r
33 \r
34 class CResizableComboLBox : public CWnd, public CResizableGrip\r
35 {\r
36         friend class CResizableComboBox;\r
37 \r
38 // Construction\r
39 public:\r
40         CResizableComboLBox();\r
41 \r
42 // Attributes\r
43 public:\r
44 \r
45 // Operations\r
46 public:\r
47 \r
48 // Overrides\r
49         // ClassWizard generated virtual function overrides\r
50         //{{AFX_VIRTUAL(CResizableComboLBox)\r
51         protected:\r
52         virtual void PreSubclassWindow();\r
53         virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);\r
54         //}}AFX_VIRTUAL\r
55 \r
56 // Implementation\r
57 public:\r
58         virtual ~CResizableComboLBox();\r
59 \r
60 private:\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
65         BOOL m_bSizing;\r
66 \r
67         void InitializeControl();\r
68 \r
69 protected:\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
74 \r
75         void ApplyLimitsToPos(WINDOWPOS* lpwndpos);\r
76         void EndSizing();\r
77 \r
78         BOOL IsRTL();\r
79 \r
80         virtual CWnd* GetResizableWnd() const\r
81         {\r
82                 // make the layout know its parent window\r
83                 return CWnd::FromHandle(m_hWnd);\r
84         };\r
85 \r
86         // Generated message map functions\r
87 protected:\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
92 #if _MSC_VER < 1400\r
93         afx_msg UINT OnNcHitTest(CPoint point);\r
94 #else\r
95         afx_msg LRESULT OnNcHitTest(CPoint point);\r
96 #endif\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
100         //}}AFX_MSG\r
101 \r
102         DECLARE_MESSAGE_MAP()\r
103 };\r
104 \r
105 /////////////////////////////////////////////////////////////////////////////\r
106 \r
107 //{{AFX_INSERT_LOCATION}}\r
108 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.\r
109 \r
110 #endif // !defined(AFX_RESIZABLECOMBOLBOX_H__INCLUDED_)\r