Tile View problem when using Owner Data [modified]
-
I'm having a problem using tile view in my listview control. It works alright if I'm not using owner data, but if I do use owner data, the listview doesn't draw the label text properly. It looks like it's not bothering to calculate the offset for the label based on the additional lines and just draws at the same spot. Image of problem Here are some of the relevant code snippets. Did I miss any particular step?
LVTILEVIEWINFO lvtvi = { sizeof(LVTILEVIEWINFO), LVTVIM_COLUMNS};
lvtvi.cLines = 2;
lvtvi.dwFlags = LVTVIF_AUTOSIZE;
BOOL bRet = m_view.SetTileViewInfo ( &lvtvi ); // bRet returns TRUEOnGetDispInfo(...)
{
:if(pItem->mask & LVIF_COLUMNS)
{
pItem->puColumns[0] = 1;
pItem->puColumns[1] = 2;
pItem->cColumns = 2;
}:
}-- modified at 13:58 Monday 24th July, 2006