Public Member Functions | |
| DECLARE_CLASS_SIID (IID_IItemPanel) long AddRef() PURE | |
| 增加引用计数 | |
| long | Release () PURE |
| 减少引用计数 | |
| void | OnFinalRelease () PURE |
| 释放对象 | |
| IWindow * | ToIWindow () PURE |
| 转换为IWindow*接口 | |
| void | SetItemIndex (LPARAM index) PURE |
| 设置在列表中对应的索引 | |
| LPARAM | GetItemIndex () SCONST PURE |
| 获取在列表中的索引 | |
| void | SetItemData (LPARAM dwData) PURE |
| 设置列表项的用户数据 | |
| LPARAM | GetItemData () SCONST PURE |
| 获取在列表中的用户数据 | |
| void | PtToHost (POINT *pt) SCONST PURE |
| 将panel的坐标转换为host坐标 | |
| void | SetSkin (ISkinObj *pSkin) PURE |
| 设置列表项的skin | |
| void | SetColor (COLORREF crBk, COLORREF crSelBk) PURE |
| 设置列表项的颜色配置 | |
Public Member Functions inherited from IOsrPanel | |
| DECLARE_CLASS_SIID (IID_IOsrPanel) long AddRef() PURE | |
| 增加引用计数 | |
| long | Release () PURE |
| 减少引用计数 | |
| void | OnFinalRelease () PURE |
| 释放对象 | |
| IWindow * | ToIWindow () PURE |
| 转换为IWindow*接口 | |
| void | SetItemIndex (LPARAM index) PURE |
| 设置在列表中对应的索引 | |
| LPARAM | GetItemIndex () SCONST PURE |
| 获取在列表中的索引 | |
| void | SetItemData (LPARAM dwData) PURE |
| 设置列表项的用户数据 | |
| LPARAM | GetItemData () SCONST PURE |
| 获取在列表中的用户数据 | |
| void | PtToHost (POINT *pt) SCONST PURE |
| 将panel的坐标转换为host坐标 | |
Public Member Functions inherited from ICtrl | |
| DECLARE_CLASS_SIID (IID_ICtrl) long AddRef() PURE | |
| 增加引用计数 | |
| long | Release () PURE |
| 减少引用计数 | |
| void | OnFinalRelease () PURE |
| 释放对象 | |
| IWindow * | ToIWindow () PURE |
| 转换为IWindow*接口 | |
Public Member Functions inherited from IObjRef | |
| long | AddRef () PURE |
| Increases the reference count. | |
| long | Release () PURE |
| Decreases the reference count. | |
| void | OnFinalRelease () PURE |
| Called when the reference count reaches zero and the object is about to be released. | |
| IItemPanel::DECLARE_CLASS_SIID | ( | IID_IItemPanel | ) |
增加引用计数
| LPARAM IItemPanel::GetItemData | ( | ) |
获取在列表中的用户数据
| LPARAM IItemPanel::GetItemIndex | ( | ) |
获取在列表中的索引
| void IItemPanel::OnFinalRelease | ( | ) |
释放对象
| void IItemPanel::PtToHost | ( | POINT * | pt | ) |
将panel的坐标转换为host坐标
| [in,out] | POINT | *pt 窗口坐标 |
| long IItemPanel::Release | ( | ) |
减少引用计数
| void IItemPanel::SetColor | ( | COLORREF | crBk, |
| COLORREF | crSelBk ) |
设置列表项的颜色配置
| crBk | – 背景颜色 |
| crSelBk | – 选中状态的背景颜色 |
| void IItemPanel::SetItemData | ( | LPARAM | dwData | ) |
设置列表项的用户数据
| dwData | – 用户数据 |
| void IItemPanel::SetItemIndex | ( | LPARAM | index | ) |
设置在列表中对应的索引
| index | – 索引值,在listview中它是一个索引号,在treeview中它是一个HTREEITEM值 |
| void IItemPanel::SetSkin | ( | ISkinObj * | pSkin | ) |
设置列表项的skin
| pSkin | – 列表项的skin |
| IWindow * IItemPanel::ToIWindow | ( | ) |
转换为IWindow*接口