]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - tools/src/tools/configtool/common/win32/SplitterWndEx.h
Initial revision
[karo-tx-redboot.git] / tools / src / tools / configtool / common / win32 / SplitterWndEx.h
1 //####COPYRIGHTBEGIN####
2 //                                                                          
3 // ----------------------------------------------------------------------------
4 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
5 //
6 // This program is part of the eCos host tools.
7 //
8 // This program is free software; you can redistribute it and/or modify it 
9 // under the terms of the GNU General Public License as published by the Free 
10 // Software Foundation; either version 2 of the License, or (at your option) 
11 // any later version.
12 // 
13 // This program is distributed in the hope that it will be useful, but WITHOUT 
14 // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
15 // FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for 
16 // more details.
17 // 
18 // You should have received a copy of the GNU General Public License along with
19 // this program; if not, write to the Free Software Foundation, Inc., 
20 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
21 //
22 // ----------------------------------------------------------------------------
23 //                                                                          
24 //####COPYRIGHTEND####
25 //===========================================================================
26 //#####DESCRIPTIONBEGIN####
27 //
28 // Author(s):   sdf
29 // Contact(s):  sdf
30 // Date:                1998/08/11
31 // Version:             0.01
32 // Purpose:     
33 // Description: Interface of the customer splitter window class
34 // Requires:    
35 // Provides:    
36 // See also:    
37 // Known bugs:  
38 // Usage:       
39 //
40 //####DESCRIPTIONEND####
41 //
42 //===========================================================================
43 #ifndef _SPLITTERWNDEX
44 #define _SPLITTERWNDEX
45 #if _MSC_VER >= 1000
46 #pragma once
47 #endif // _MSC_VER >= 1000
48 ////////////////////////////////////////////////////////////////////////////
49 //
50 // splitex.h
51 // (c) 1997, Oleg G. Galkin
52
53 class CSplitterWndEx : public CSplitterWnd
54 {
55 public:
56         void SetSplitPoint (double fSplit);
57         double GetSplitPoint();
58         void RecalcLayout();
59         void ShowPane (CWnd *pWnd,BOOL bShow);
60     CSplitterWndEx();
61         //virtual BOOL CreateStatic( CWnd* pParentWnd, int nRows, int nCols, DWORD dwStyle = WS_CHILD | WS_VISIBLE, UINT nID = AFX_IDW_PANE_FIRST );
62
63 // ClassWizard generated virtual function overrides
64      //{{AFX_VIRTUAL(CSplitterWndEx)
65      //}}AFX_VIRTUAL
66
67 // Generated message map functions
68 protected:
69   bool IsHorizontal() const { return m_nCols>m_nRows; }
70         void SwapRowColInfo();
71         double m_fRowColumnRatio;
72         BOOL m_bParentHide;
73         CWnd * m_pwnd1;
74         CWnd * m_pwnd2;
75      //{{AFX_MSG(CSplitterWndEx)
76         afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
77         afx_msg void OnSize(UINT nType, int cx, int cy);
78         //}}AFX_MSG
79
80     DECLARE_MESSAGE_MAP()
81 };
82 #endif