Windows C++ Library
|
#include <ListView.hpp>
Public Types | |
typedef std::vector< size_t > | Items |
Public Member Functions | |
CListView () | |
void | CheckBoxes (bool bOn=true) |
void | FullRowSelect (bool bOn=true) |
void | GridLines (bool bOn=true) |
void | Reserve (size_t nItems) |
size_t | AppendItem (const tchar *pszText, size_t nImage=Core::npos) |
size_t | InsertItem (size_t nItem, const tchar *pszText, size_t nImage=-1) |
size_t | InsertItem (size_t item, const tstring &text, size_t icon=-1) |
Insert a new item into the control. | |
void | DeleteItem (size_t nItem) |
void | DeleteAllItems () |
void | ItemText (size_t nItem, size_t nSubItem, const tchar *pszText) |
void | ItemText (size_t item, size_t subItem, const tstring &text) |
Set the text value for a sub item. | |
void | ItemImage (size_t nItem, size_t nImage) |
void | ItemState (size_t nItem, uint nState, uint nMask) |
void | ItemData (size_t nItem, LPARAM lParam) |
void | ItemPtr (size_t nItem, const void *pData) |
void | SetChecked (size_t nItem, bool bChecked=true) |
CString | ItemText (size_t nItem, size_t nSubItem) const |
size_t | ItemImage (size_t nItem) const |
uint | ItemState (size_t nItem, uint nMask=LVIS_SELECTED) const |
LPARAM | ItemData (size_t nItem) const |
void * | ItemPtr (size_t nItem) const |
bool | IsChecked (size_t nItem) |
void | Select (size_t nItem, bool bSelect=true) |
bool | IsSelection () const |
size_t | Selection () const |
size_t | Selections (Items &vItems) const |
bool | IsSelected (size_t nItem) const |
void | RestoreSel (size_t nItem) |
size_t | ItemCount () const |
void | MakeItemVisible (size_t nItem) |
size_t | NumColumns () const |
void | InsertColumn (size_t nColumn, const tchar *pszName, size_t nWidth, uint nFormat=LVCFMT_LEFT) |
void | InsertColumns (const LVColumn *pColumns, size_t nColumns) |
void | DeleteColumn (size_t nColumn) |
void | DeleteAllColumns () |
size_t | ColumnWidth (size_t nColumn) const |
void | ColumnWidth (size_t nColumn, uint nWidth) |
void | ColumnWidthAuto (size_t nColumn, bool bFitHeader=false) |
size_t | FindItem (const tchar *pszText, bool bPartial=false, size_t nStart=-1) const |
size_t | FindItem (LPARAM lData, size_t nStart=-1) const |
size_t | FindItem (const void *pData, size_t nStart=-1) const |
size_t | FindAllItems (const void *pData, Items &vItems) const |
void | ImageList (uint nType, const CImageList &oImageList) |
void | ImageList (uint nType, uint nRscID, uint nImgWidth, COLORREF crMask) |
void | IconSpacing (uint iHorzSpacing, uint iVertSpacing) |
size_t | StringWidth (const tchar *pszString) const |
size_t | StringWidth (size_t nChars) const |
int | Sort (PFNLVCOMPARE pfnCompare, LPARAM lParamSort) |
Protected Member Functions | |
virtual void | GetCreateParams (WNDCREATE &rParams) |
typedef std::vector<size_t> CListView::Items |
void CListView::CheckBoxes | ( | bool | bOn = true | ) | [inline] |
void CListView::FullRowSelect | ( | bool | bOn = true | ) | [inline] |
void CListView::GridLines | ( | bool | bOn = true | ) | [inline] |
void CListView::Reserve | ( | size_t | nItems | ) | [inline] |
size_t CListView::AppendItem | ( | const tchar * | pszText, |
size_t | nImage = Core::npos |
||
) | [inline] |
size_t CListView::InsertItem | ( | size_t | nItem, |
const tchar * | pszText, | ||
size_t | nImage = -1 |
||
) |
size_t CListView::InsertItem | ( | size_t | item, |
const tstring & | text, | ||
size_t | icon = -1 |
||
) | [inline] |
Insert a new item into the control.
void CListView::DeleteItem | ( | size_t | nItem | ) | [inline] |
void CListView::DeleteAllItems | ( | ) | [inline] |
void CListView::ItemText | ( | size_t | nItem, |
size_t | nSubItem, | ||
const tchar * | pszText | ||
) | [inline] |
void CListView::ItemText | ( | size_t | item, |
size_t | subItem, | ||
const tstring & | text | ||
) | [inline] |
Set the text value for a sub item.
void CListView::ItemImage | ( | size_t | nItem, |
size_t | nImage | ||
) |
void CListView::ItemState | ( | size_t | nItem, |
uint | nState, | ||
uint | nMask | ||
) | [inline] |
void CListView::ItemData | ( | size_t | nItem, |
LPARAM | lParam | ||
) |
void CListView::ItemPtr | ( | size_t | nItem, |
const void * | pData | ||
) | [inline] |
void CListView::SetChecked | ( | size_t | nItem, |
bool | bChecked = true |
||
) | [inline] |
CString CListView::ItemText | ( | size_t | nItem, |
size_t | nSubItem | ||
) | const |
size_t CListView::ItemImage | ( | size_t | nItem | ) | const |
uint CListView::ItemState | ( | size_t | nItem, |
uint | nMask = LVIS_SELECTED |
||
) | const [inline] |
LPARAM CListView::ItemData | ( | size_t | nItem | ) | const |
void * CListView::ItemPtr | ( | size_t | nItem | ) | const [inline] |
bool CListView::IsChecked | ( | size_t | nItem | ) | [inline] |
void CListView::Select | ( | size_t | nItem, |
bool | bSelect = true |
||
) | [inline] |
bool CListView::IsSelection | ( | ) | const [inline] |
size_t CListView::Selection | ( | ) | const [inline] |
size_t CListView::Selections | ( | Items & | vItems | ) | const |
bool CListView::IsSelected | ( | size_t | nItem | ) | const [inline] |
void CListView::RestoreSel | ( | size_t | nItem | ) |
size_t CListView::ItemCount | ( | ) | const [inline] |
void CListView::MakeItemVisible | ( | size_t | nItem | ) | [inline] |
size_t CListView::NumColumns | ( | ) | const [inline] |
void CListView::InsertColumn | ( | size_t | nColumn, |
const tchar * | pszName, | ||
size_t | nWidth, | ||
uint | nFormat = LVCFMT_LEFT |
||
) |
void CListView::InsertColumns | ( | const LVColumn * | pColumns, |
size_t | nColumns | ||
) |
void CListView::DeleteColumn | ( | size_t | nColumn | ) | [inline] |
void CListView::DeleteAllColumns | ( | ) | [inline] |
size_t CListView::ColumnWidth | ( | size_t | nColumn | ) | const [inline] |
void CListView::ColumnWidth | ( | size_t | nColumn, |
uint | nWidth | ||
) | [inline] |
void CListView::ColumnWidthAuto | ( | size_t | nColumn, |
bool | bFitHeader = false |
||
) | [inline] |
size_t CListView::FindItem | ( | const tchar * | pszText, |
bool | bPartial = false , |
||
size_t | nStart = -1 |
||
) | const |
size_t CListView::FindItem | ( | LPARAM | lData, |
size_t | nStart = -1 |
||
) | const |
size_t CListView::FindItem | ( | const void * | pData, |
size_t | nStart = -1 |
||
) | const |
size_t CListView::FindAllItems | ( | const void * | pData, |
Items & | vItems | ||
) | const |
void CListView::ImageList | ( | uint | nType, |
const CImageList & | oImageList | ||
) |
void CListView::ImageList | ( | uint | nType, |
uint | nRscID, | ||
uint | nImgWidth, | ||
COLORREF | crMask | ||
) |
void CListView::IconSpacing | ( | uint | iHorzSpacing, |
uint | iVertSpacing | ||
) | [inline] |
size_t CListView::StringWidth | ( | const tchar * | pszString | ) | const [inline] |
size_t CListView::StringWidth | ( | size_t | nChars | ) | const |
int CListView::Sort | ( | PFNLVCOMPARE | pfnCompare, |
LPARAM | lParamSort | ||
) | [inline] |
void CListView::GetCreateParams | ( | WNDCREATE & | rParams | ) | [protected, virtual] |
Reimplemented from CCtrlWnd.