1 //####COPYRIGHTBEGIN####
3 // ----------------------------------------------------------------------------
4 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc.
6 // This program is part of the eCos host tools.
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)
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
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.
22 // ----------------------------------------------------------------------------
24 //####COPYRIGHTEND####
25 //===========================================================================
26 //#####DESCRIPTIONBEGIN####
33 // Description: Interface of a CSplitterWndEx override for control/cell view split
40 //####DESCRIPTIONEND####
42 //===========================================================================#include "stdafx.h"
43 #ifndef _THINSPLITTER_H
44 #define _THINSPLITTER_H
45 #include "SplitterWndEx.h"
46 class CThinSplitter : public CSplitterWndEx {
49 virtual ~CThinSplitter();
50 void DeleteColumn(int colDelete);
51 void OnDrawSplitter( CDC* pDC, ESplitType nType, const CRect& rect );
52 int HitTest(CPoint pt) const;
53 BOOL SplitColumn(int cxBefore);
55 virtual BOOL CreateStatic( CWnd* pParentWnd, int nRows, int nCols, DWORD dwStyle = WS_CHILD | WS_VISIBLE, UINT nID = AFX_IDW_PANE_FIRST );
60 double m_fColumnRatio;
61 //DECLARE_DYNCREATE(CThinSplitter)
62 //{{AFX_MSG(CThinSplitter)
63 afx_msg void OnSize(UINT nType, int cx, int cy);
64 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
65 afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);