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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [tools/] [configtool/] [common/] [win32/] [listctrltoview.inl] - Blame information for rev 574

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

Line No. Rev Author Line
1 26 unneback
//####ECOSHOSTGPLCOPYRIGHTBEGIN####
2
// -------------------------------------------
3
// Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
4
//
5
// This file is part of the eCos host tools.
6
//
7
// This program is free software; you can redistribute it and/or modify it
8
// under the terms of the GNU General Public License as published by the Free
9
// Software Foundation; either version 2 of the License, or (at your option)
10
// any later version.
11
//
12
// This program is distributed in the hope that it will be useful, but WITHOUT
13
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
15
// more details.
16
//
17
// You should have received a copy of the GNU General Public License along with
18
// this program; if not, write to the Free Software Foundation, Inc.,
19
// 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
20
//
21
// -------------------------------------------
22
//####ECOSHOSTGPLCOPYRIGHTEND####
23
//===========================================================================
24
//#####DESCRIPTIONBEGIN####
25
//
26
// Author(s):   sdf
27
// Contact(s):  sdf
28
// Date:                1998/08/11
29
// Version:             0.01
30
// Purpose:
31
// Description: Wrapper to avoid use of GetListCtrl() in view class
32
// Requires:
33
// Provides:
34
// See also:
35
// Known bugs:
36
// Usage:
37
//
38
//####DESCRIPTIONEND####
39
//
40
//===========================================================================
41
        COLORREF GetBkColor() const { return  GetListCtrl().GetBkColor();}
42
        BOOL SetBkColor(COLORREF cr) { return  GetListCtrl().SetBkColor(cr);}
43
        CImageList* GetImageList(int nImageList) const { return  GetListCtrl().GetImageList(nImageList);}
44
        CImageList* SetImageList(CImageList* pImageList, int nImageListType) { return  GetListCtrl().SetImageList(pImageList, nImageListType);}
45
        int GetItemCount() const { return  GetListCtrl().GetItemCount();}
46
        BOOL GetItem(LVITEM* pItem) const { return  GetListCtrl().GetItem(pItem); }
47
        BOOL SetItem(const LVITEM* pItem) { return  GetListCtrl().SetItem(pItem);}
48
        BOOL SetItem(int nItem, int nSubItem, UINT nMask, LPCTSTR lpszItem,
49
                int nImage, UINT nState, UINT nStateMask, LPARAM lParam) { return  GetListCtrl().SetItem(nItem, nSubItem, nMask, lpszItem, nImage, nState, nStateMask, lParam);}
50
        UINT GetCallbackMask() const  { return  GetListCtrl().GetCallbackMask();}
51
        BOOL SetCallbackMask(UINT nMask) { return  GetListCtrl().SetCallbackMask(nMask);}
52
        int GetNextItem(int nItem, int nFlags) const { return  GetListCtrl().GetNextItem(nItem,nFlags);}
53
        BOOL GetItemRect(int nItem, LPRECT lpRect, UINT nCode) const { return  GetListCtrl().GetItemRect(nItem,lpRect,nCode);}
54
        BOOL SetItemPosition(int nItem, POINT pt) { return  GetListCtrl().SetItemPosition(nItem,pt);}
55
        BOOL GetItemPosition(int nItem, LPPOINT lpPoint) const { return  GetListCtrl().GetItemPosition(nItem,lpPoint);}
56
        int GetStringWidth(LPCTSTR lpsz) const { return  GetListCtrl().GetStringWidth(lpsz);}
57
        CEdit* GetEditControl() const { return  GetListCtrl().GetEditControl();}
58
        BOOL GetColumn(int nCol, LVCOLUMN* pColumn) const { return  GetListCtrl().GetColumn(nCol, pColumn);}
59
        BOOL SetColumn(int nCol, const LVCOLUMN* pColumn) { return  GetListCtrl().SetColumn(nCol, pColumn);}
60
        int GetColumnWidth(int nCol) const { return  GetListCtrl().GetColumnWidth(nCol);}
61
        BOOL SetColumnWidth(int nCol, int cx) { return  GetListCtrl().SetColumnWidth(nCol,cx);}
62
        BOOL GetViewRect(LPRECT lpRect) const { return  GetListCtrl().GetViewRect(lpRect);}
63
        COLORREF GetTextColor() const { return  GetListCtrl().GetTextColor();}
64
        BOOL SetTextColor(COLORREF cr) { return  GetListCtrl().SetTextColor(cr);}
65
        COLORREF GetTextBkColor() const { return  GetListCtrl().GetTextBkColor();}
66
        BOOL SetTextBkColor(COLORREF cr) { return  GetListCtrl().SetTextBkColor(cr);}
67
        int GetTopIndex() const { return  GetListCtrl().GetTopIndex();}
68
        int GetCountPerPage() const { return  GetListCtrl().GetCountPerPage();}
69
        BOOL GetOrigin(LPPOINT lpPoint) const { return  GetListCtrl().GetOrigin(lpPoint);}
70
        BOOL SetItemState(int nItem, LVITEM* pItem) { return  GetListCtrl().SetItemState(nItem, pItem);}
71
        BOOL SetItemState(int nItem, UINT nState, UINT nMask) { return  GetListCtrl().SetItemState(nItem,nState,nMask);}
72
        UINT GetItemState(int nItem, UINT nMask) const { return  GetListCtrl().GetItemState(nItem,nMask);}
73
        CString GetItemText(int nItem, int nSubItem) const { return  GetListCtrl().GetItemText(nItem,nSubItem);}
74
        int GetItemText(int nItem, int nSubItem, LPTSTR lpszText, int nLen) const { return  GetListCtrl().GetItemText(nItem,nSubItem,lpszText,nLen);}
75
        BOOL SetItemText(int nItem, int nSubItem, LPCTSTR lpszText) { return  GetListCtrl().SetItemText(nItem,nSubItem,lpszText);}
76
        void SetItemCount(int nItems) { GetListCtrl().SetItemCount(nItems);}
77
        BOOL SetItemData(int nItem, DWORD dwData) { return  GetListCtrl().SetItemData(nItem,dwData);}
78
        DWORD GetItemData(int nItem) const { return  GetListCtrl().GetItemData(nItem);}
79
        UINT GetSelectedCount() const { return  GetListCtrl().GetSelectedCount();}
80
#ifdef IE4
81
        int GetNextSelectedItem(POSITION& pos) const { return  GetListCtrl().GetNextSelectedItem(pos);}
82
        POSITION GetFirstSelectedItemPosition() const { return  GetListCtrl().GetFirstSelectedItemPosition();}
83
        BOOL SetColumnOrderArray(int iCount, LPINT piArray) { return  GetListCtrl().SetColumnOrderArray(iCount,piArray);}
84
        BOOL GetColumnOrderArray(LPINT piArray, int iCount = -1) { return  GetListCtrl().GetColumnOrderArray(piArray,iCount);}
85
        CSize SetIconSpacing(CSize size) { return  GetListCtrl().SetIconSpacing(size);}
86
        CSize SetIconSpacing(int cx, int cy) { return  GetListCtrl().SetIconSpacing(cx,cy);}
87
        CHeaderCtrl* GetHeaderCtrl() { return  GetListCtrl().GetHeaderCtrl();}
88
        HCURSOR GetHotCursor() { return  GetListCtrl().GetHotCursor();}
89
        HCURSOR SetHotCursor(HCURSOR hc) { return  GetListCtrl().SetHotCursor(hc);}
90
        BOOL GetSubItemRect(int iItem, int iSubItem, int nArea, CRect& ref) { return  GetListCtrl().GetSubItemRect(iItem,iSubItem,nArea, CRect& ref);}
91
        int GetHotItem() { return  GetListCtrl().GetHotItem();}
92
        int SetHotItem(int iIndex) { return  GetListCtrl().SetHotItem(iIndex);}
93
        int GetSelectionMark() { return  GetListCtrl().GetSelectionMark();}
94
        int SetSelectionMark(int iIndex) { return  GetListCtrl().SetSelectionMark(iIndex);}
95
        DWORD GetExtendedStyle() { return  GetListCtrl().GetExtendedStyle();}
96
        DWORD SetExtendedStyle(DWORD dwNewStyle) { return  GetListCtrl().SetExtendedStyle(dwNewStyle);}
97
        int SubItemHitTest(LPLVHITTESTINFO pInfo) { return  GetListCtrl().SubItemHitTest(pInfo);}
98
        void SetWorkAreas(int nWorkAreas, LPRECT lpRect) { return  GetListCtrl().SetWorkAreas(nWorkAreas,lpRect);}
99
        BOOL SetItemCountEx(int iCount, DWORD dwFlags = LVSICF_NOINVALIDATEALL) { return  GetListCtrl().SetItemCountEx(iCount,dwFlags);}
100
        CSize ApproximateViewRect(CSize sz = CSize(-1, -1), int iCount = -1) const { return  GetListCtrl().ApproximateViewRect(sz,iCount);}
101
        BOOL GetBkImage(LVBKIMAGE* plvbkImage) const { return  GetListCtrl().GetBkImage(LVBKIMAGE* plvbkImage);}
102
        DWORD GetHoverTime() const { return  GetListCtrl().GetHoverTime();}
103
        void GetWorkAreas(int nWorkAreas, LPRECT prc) const { return  GetListCtrl().GetWorkAreas(nWorkAreas,prc);}
104
        BOOL SetBkImage(HBITMAP hbm, BOOL fTile = TRUE, int xOffsetPercent = 0, int yOffsetPercent = 0) { return  GetListCtrl().SetBkImage(hbm,fTile,xOffsetPercent,yOffsetPercent);}
105
        BOOL SetBkImage(LPTSTR pszUrl, BOOL fTile = TRUE, int xOffsetPercent = 0, int yOffsetPercent = 0) { return  GetListCtrl().SetBkImage(pszUrl,fTile,xOffsetPercent,yOffsetPercent);}
106
        BOOL SetBkImage(LVBKIMAGE* plvbkImage) { return  GetListCtrl().SetBkImage(LVBKIMAGE* plvbkImage);}
107
        DWORD SetHoverTime(DWORD dwHoverTime = (DWORD)-1) { return  GetListCtrl().SetHoverTime(dwHoverTime);}
108
        UINT GetNumberOfWorkAreas() const { return  GetListCtrl().GetNumberOfWorkAreas();}
109
        BOOL GetCheck(int nItem) const { return  GetListCtrl().GetCheck(nItem);}
110
        BOOL SetCheck(int nItem, BOOL fCheck = TRUE) { return  GetListCtrl().SetCheck(nItem,fCheck);}
111
#endif
112
 
113
// Operations
114
        int InsertItem(const LVITEM* pItem) { return  GetListCtrl().InsertItem(pItem);}
115
        int InsertItem(int nItem, LPCTSTR lpszItem) { return  GetListCtrl().InsertItem(nItem,lpszItem);}
116
        int InsertItem(int nItem, LPCTSTR lpszItem, int nImage) { return  GetListCtrl().InsertItem(nItem,lpszItem,nImage);}
117
        BOOL DeleteItem(int nItem) { return  GetListCtrl().DeleteItem(nItem);}
118
        BOOL DeleteAllItems() { return  GetListCtrl().DeleteAllItems();}
119
        int FindItem(LVFINDINFO* pFindInfo, int nStart = -1) const { return  GetListCtrl().FindItem(pFindInfo,nStart);}
120
        int HitTest(LVHITTESTINFO* pHitTestInfo) const { return  GetListCtrl().HitTest(pHitTestInfo);}
121
        int HitTest(CPoint pt, UINT* pFlags = NULL) const { return  GetListCtrl().HitTest(pt, pFlags);}
122
        BOOL EnsureVisible(int nItem, BOOL bPartialOK) { return  GetListCtrl().EnsureVisible(nItem,bPartialOK);}
123
        BOOL Scroll(CSize size) { return  GetListCtrl().Scroll(size);}
124
        BOOL RedrawItems(int nFirst, int nLast) { return  GetListCtrl().RedrawItems(nFirst,nLast);}
125
        BOOL Arrange(UINT nCode) { return  GetListCtrl().Arrange(nCode);}
126
        CEdit* EditLabel(int nItem) { return  GetListCtrl().EditLabel(nItem);}
127
        int InsertColumn(int nCol, const LVCOLUMN* pColumn) { return  GetListCtrl().InsertColumn(nCol,pColumn);}
128
        int InsertColumn(int nCol, LPCTSTR lpszColumnHeading, int nFormat = LVCFMT_LEFT, int nWidth = -1, int nSubItem = -1)
129
                { return  GetListCtrl().InsertColumn(nCol,lpszColumnHeading, nFormat, nWidth, nSubItem);}
130
        BOOL DeleteColumn(int nCol) { return  GetListCtrl().DeleteColumn(nCol);}
131
        CImageList* CreateDragImage(int nItem, LPPOINT lpPoint) { return  GetListCtrl().CreateDragImage(nItem,lpPoint);}
132
        BOOL Update(int nItem) { return  GetListCtrl().Update(nItem);}
133
        BOOL SortItems(PFNLVCOMPARE pfnCompare, DWORD dwData) { return  GetListCtrl().SortItems(pfnCompare,dwData);}
134
 

powered by: WebSVN 2.1.0

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