Does anybody have some sample code that uses a CListCtrl with groups
enabled that also uses Owner Data that they could share with me?
Gerard
1. CListCtrl with Owner Data and Group View
2. CListCtrl with owner data and tooltip missing problem
I've a CListView derived class with owner data style and report view. My tooltip gets displayed and then overdrawn repeatedly. Traces in my lvn_getdispinfo and ttn_needtext handlers get called repeatedly. Are there known problems with tooltips and owner data? Any Ideas? Thanks, Jeff F
3. using CListCtrl::Sort() with OWNER DATA
4. CListCtrl - Owner Data - Checkbox style - No checkboxes displaying.
In my OnGetDispInfo, how do I get the checkbox to show?
Currently, I only see white-space where I'd expect a checkbox (checked or
unchecked) to show up.
I'm using VS.NET 2003.
Here's my OnGetDispInfo(...)
{
NMLVDISPINFO *pDispInfo = reinterpret_cast<NMLVDISPINFO*>(pNMHDR);
LV_ITEM* pItem = &(pDispInfo)->item;
if (pItem->mask & LVIF_TEXT) //valid text buffer?
{
CString str;
CEINItem* pei = m_arrEINs.GetItem(pItem->iItem);
switch(pItem->iSubItem)
{
case CEINItem::EIN:
str.Format(_T("%ld"), pei->GetEIN());
_tcscpy(pItem->pszText, str);
break;
case CEINItem::EMPLOYER:
_tcscpy(pItem->pszText, pei->GetEmployer());
break;
}
}
if (pItem->mask & LVIF_IMAGE) //valid image?
pItem->iImage = 2; // Show checked.
*pResult = 0;
}
My OnInitDialog in main class:
mylistctrl.SetExtendedStyle(LVS_EX_FULLROWSELECT | LVS_EX_HEADERDRAGDROP
| LVS_EX_CHECKBOXES);
mylistctrl.InsertColumn(0, _T("EIN"), LVCFMT_RIGHT);
mylistctrl.InsertColumn(1, _T("Employer"), LVCFMT_LEFT);
Later, I add three items to the backing data and call
mylistctrl.SetItemCountEx(3);
I see the three items, but no checkbox images.
Any thoughts?
5. Changing the text of a group in a Report style CListCtrl in Group-View
6. Vertical tab control with owner drawn enabled
Hi I have a tab control with owner draw enabled in which I am drawing a icon and a text. It works perfectly fine when the TCS_VERTICAL option is not selected. But when I select TCS_VERTICAL option I am not able to see the text. Could anyone knows a solution for this? Regards
7. Vertical tab control with owner draw enabled
8. Owner Draw Listbox, where each item is a dialog or group of contro
I'm trying to implement the equivalent of an owner draw list box where each item contains either a child dialog or an identical group of controls. I found the ListDlg sample, which apparently does just that using dialogs, but the link to download the code is dead. Does anyone have something like this or know where I could find the sample code?