固定高度的列表视图项定位器 More...
#include <SListViewItemLocator.h>
Public Member Functions | |
SListViewItemLocatorFix (SLayoutSize nItemHei, SLayoutSize nDividerSize=SLayoutSize()) | |
构造函数 | |
void | SetAdapter (ILvAdapter *pAdapter) OVERRIDE |
设置适配器 | |
void | OnDataSetChanged () OVERRIDE |
数据集发生变化时调用 | |
BOOL | IsFixHeight () SCONST OVERRIDE |
检查是否为固定高度 | |
int | GetItemHeight (int iItem) SCONST OVERRIDE |
获取指定项的高度 | |
void | SetItemHeight (int iItem, int nHeight) OVERRIDE |
设置指定项的高度 | |
int | GetTotalHeight () OVERRIDE |
获取总高度 | |
int | Item2Position (int iItem) OVERRIDE |
将项索引转换为位置 | |
int | Position2Item (int position) OVERRIDE |
将位置转换为项索引 | |
int | GetScrollLineSize () SCONST OVERRIDE |
获取滚动行大小 | |
int | GetDividerSize () SCONST OVERRIDE |
获取分隔符大小 | |
void | SetScale (int nScale) OVERRIDE |
设置缩放比例 | |
![]() | |
TObjRefImpl () | |
Constructor that initializes the reference count to 1. | |
virtual | ~TObjRefImpl () |
Virtual destructor. | |
long | AddRef () override |
Increments the reference count. | |
long | Release () override |
Decrements the reference count and deletes the object if the count reaches zero. | |
void | OnFinalRelease () override |
Deletes the object. | |
Protected Member Functions | |
int | GetFixItemHeight () const |
获取固定项的高度 | |
Protected Attributes | |
SLayoutSize | m_nItemHeight |
每个项的高度 | |
SLayoutSize | m_nDividerSize |
分隔符的高度 | |
int | m_nScale |
缩放比例 | |
SAutoRefPtr< ILvAdapter > | m_adapter |
列表适配器对象指针 | |
![]() | |
LONG | m_cRef |
Reference count. | |
固定高度的列表视图项定位器
Definition at line 13 of file SListViewItemLocator.h.
SNSBEGIN SListViewItemLocatorFix::SListViewItemLocatorFix | ( | SLayoutSize | nItemHei, |
SLayoutSize | nDividerSize = SLayoutSize() ) |
构造函数
nItemHei | 每个项的高度 |
nDividerSize | 分隔符的高度(默认为0) |
Definition at line 12 of file SListViewItemLocator.cpp.
int SListViewItemLocatorFix::GetDividerSize | ( | ) |
|
protected |
int SListViewItemLocatorFix::GetItemHeight | ( | int | iItem | ) |
int SListViewItemLocatorFix::GetScrollLineSize | ( | ) |
int SListViewItemLocatorFix::GetTotalHeight | ( | ) |
BOOL SListViewItemLocatorFix::IsFixHeight | ( | ) |
int SListViewItemLocatorFix::Item2Position | ( | int | iItem | ) |
|
inline |
数据集发生变化时调用
Definition at line 32 of file SListViewItemLocator.h.
int SListViewItemLocatorFix::Position2Item | ( | int | position | ) |
void SListViewItemLocatorFix::SetAdapter | ( | ILvAdapter * | pAdapter | ) |
void SListViewItemLocatorFix::SetItemHeight | ( | int | iItem, |
int | nHeight ) |
void SListViewItemLocatorFix::SetScale | ( | int | nScale | ) |
|
protected |
列表适配器对象指针
Definition at line 104 of file SListViewItemLocator.h.
|
protected |
分隔符的高度
Definition at line 102 of file SListViewItemLocator.h.
|
protected |
每个项的高度
Definition at line 101 of file SListViewItemLocator.h.
|
protected |
缩放比例
Definition at line 103 of file SListViewItemLocator.h.