OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [host/] [tools/] [configtool/] [common/] [win32/] [thinsplitter.h] - Blame information for rev 790

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
// ####ECOSHOSTGPLCOPYRIGHTBEGIN####                                        
2
// -------------------------------------------                              
3
// This file is part of the eCos host tools.                                
4
// Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.            
5
//
6
// This program is free software; you can redistribute it and/or modify     
7
// it under the terms of the GNU General Public License as published by     
8
// the Free Software Foundation; either version 2 or (at your option) any   
9
// later version.                                                           
10
//
11
// This program is distributed in the hope that it will be useful, but      
12
// WITHOUT ANY WARRANTY; without even the implied warranty of               
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU        
14
// General Public License for more details.                                 
15
//
16
// You should have received a copy of the GNU General Public License        
17
// along with this program; if not, write to the                            
18
// Free Software Foundation, Inc., 51 Franklin Street,                      
19
// Fifth Floor, Boston, MA  02110-1301, USA.                                
20
// -------------------------------------------                              
21
// ####ECOSHOSTGPLCOPYRIGHTEND####                                          
22
//===========================================================================
23
//#####DESCRIPTIONBEGIN####
24
//
25
// Author(s):   sdf
26
// Contact(s):  sdf
27
// Date:                1998/08/11
28
// Version:             0.01
29
// Purpose:     
30
// Description: Interface of a CSplitterWndEx override for control/cell view split
31
// Requires:    
32
// Provides:    
33
// See also:    
34
// Known bugs:  
35
// Usage:       
36
//
37
//####DESCRIPTIONEND####
38
//
39
//===========================================================================#include "stdafx.h"
40
#ifndef _THINSPLITTER_H
41
#define _THINSPLITTER_H
42
#include "SplitterWndEx.h"
43
class CThinSplitter : public CSplitterWndEx {
44
public:
45
        CThinSplitter();
46
        virtual ~CThinSplitter();
47
        void DeleteColumn(int colDelete);
48
        void OnDrawSplitter( CDC* pDC, ESplitType nType, const CRect& rect );
49
        int HitTest(CPoint pt) const;
50
        BOOL SplitColumn(int cxBefore);
51
        void RecalcLayout();
52
        virtual BOOL CreateStatic( CWnd* pParentWnd, int nRows, int nCols, DWORD dwStyle = WS_CHILD | WS_VISIBLE, UINT nID = AFX_IDW_PANE_FIRST );
53
 
54
protected:
55
 
56
  CPen m_GrayPen;
57
        double m_fColumnRatio;
58
        //DECLARE_DYNCREATE(CThinSplitter)
59
        //{{AFX_MSG(CThinSplitter)
60
        afx_msg void OnSize(UINT nType, int cx, int cy);
61
        afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar);
62
        afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
63
        //}}AFX_MSG
64
        DECLARE_MESSAGE_MAP()
65
};
66
 
67
#endif
68
 
69
 
70
 
71
 
72
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.