|
From: <ar...@us...> - 2003-01-03 04:49:36
|
Update of /cvsroot/decaldev/source/DecalControls
In directory sc8-pr-cvs1:/tmp/cvs-serv24492/DecalControls
Modified Files:
DecalControls.idl List.cpp List.h
Log Message:
Added List.CountCols() - Returns Column Count of a List
Index: DecalControls.idl
===================================================================
RCS file: /cvsroot/decaldev/source/DecalControls/DecalControls.idl,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** DecalControls.idl 17 Jun 2002 07:12:28 -0000 1.11
--- DecalControls.idl 3 Jan 2003 04:49:33 -0000 1.12
***************
*** 70,74 ****
[id(103), propput, helpstring("property Data")] HRESULT Data(long nX, long nY, [defaultvalue(0)] long nSubValue, [in] VARIANT* newVal);
[id(104), propput, helpstring("property RowEstimate")] HRESULT RowEstimate([in] long newVal);
! [propget, id(105), helpstring("property Count")] HRESULT Count([out, retval] long *pVal);
[id(106), helpstring("method Clear")] HRESULT Clear();
[id(107), helpstring("method InsertRow")] HRESULT InsertRow(long lIndex);
--- 70,74 ----
[id(103), propput, helpstring("property Data")] HRESULT Data(long nX, long nY, [defaultvalue(0)] long nSubValue, [in] VARIANT* newVal);
[id(104), propput, helpstring("property RowEstimate")] HRESULT RowEstimate([in] long newVal);
! [propget, id(105), helpstring("property Count")] HRESULT Count([out, retval] long *pVal);
[id(106), helpstring("method Clear")] HRESULT Clear();
[id(107), helpstring("method InsertRow")] HRESULT InsertRow(long lIndex);
***************
*** 82,85 ****
--- 82,86 ----
[propput, id(111), helpstring("property ScrollPosition")] HRESULT ScrollPosition([in] long newVal);
[id(112), helpstring("method JumpToPosition")] HRESULT JumpToPosition(long newVal);
+ [propget, id(113), helpstring("property CountCols")] HRESULT CountCols([out, retval] long *pVal);
};
Index: List.cpp
===================================================================
RCS file: /cvsroot/decaldev/source/DecalControls/List.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** List.cpp 16 Oct 2002 22:40:37 -0000 1.20
--- List.cpp 3 Jan 2003 04:49:33 -0000 1.21
***************
*** 458,461 ****
--- 458,470 ----
}
+ STDMETHODIMP cList::get_CountCols( long *pnCount )
+ {
+ _ASSERTE( pnCount != NULL );
+
+ *pnCount = m_cols.size();
+
+ return S_OK;
+ }
+
STDMETHODIMP cList::Clear()
{
Index: List.h
===================================================================
RCS file: /cvsroot/decaldev/source/DecalControls/List.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** List.h 7 Aug 2002 23:05:29 -0000 1.7
--- List.h 3 Jan 2003 04:49:33 -0000 1.8
***************
*** 108,115 ****
STDMETHOD(put_RowEstimate)(/*[in]*/ long newVal);
STDMETHOD(get_Count)(long *pnCount);
STDMETHOD(Clear)();
STDMETHOD(put_ColumnWidth)(long nColumn, long nWidth);
STDMETHOD(get_ColumnWidth)(long nColumn, long *nWidth);
!
// ILayerRender Methods
STDMETHOD(Reformat)();
--- 108,116 ----
STDMETHOD(put_RowEstimate)(/*[in]*/ long newVal);
STDMETHOD(get_Count)(long *pnCount);
+ STDMETHOD(get_CountCols)(long *pnCount);
STDMETHOD(Clear)();
STDMETHOD(put_ColumnWidth)(long nColumn, long nWidth);
STDMETHOD(get_ColumnWidth)(long nColumn, long *nWidth);
!
// ILayerRender Methods
STDMETHOD(Reformat)();
|