Originally posted by: Mack
It is a great work,but first i use it has small trouble,
I create my listctrl use function Create() and set ID to
0,So then I can't get the message WM_MESUREITEM when contrl
is sized.I check the msdn,in the message route,system deal with it as Menu Item when the Id set to 0,so we must compelete this work to not to set the contrl ID by 0.
Originally posted by: Ysy
Hi
I'm developping an application where I use an ownerdrawn listctrl. I know that OWNERDRAWNFIXED allows only one unique height for all items, but is there somewhere a possibility to have different item heights?
Does anybody have an idea?
Ysy
Reply
Originally posted by: Imad Zureiki
This code succeeded only when I added the LVS_OWNERDRAWFIXED
style to the list view but when I inserted the items (Using InsertItem(...) This caused an assertion error.
So whould you please Guide me. Thanks
Originally posted by: lvhang
pls help me,how can I place multi lines in one row of a list ctrl in the Listview? thanks a lot!
ReplyOriginally posted by: Paata
Please answer. how i can create multi line row in listctrol with Report view style
ReplyOriginally posted by: Dinesh Ch MAITHANI
I want to read all comments on the topic mentioned, but unable to reach. It end up with java script error. Could you please suggest me how to see all comments. I am facing problem with the font row-height upon changing in the list view.
ReplyOriginally posted by: Holin
at First.... when I coded as author explained , my computer has not breaked at breakpoint
void CMyListCtrl::
OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct)
{
// To Do::
breakpoint-> lpMeasureItemStruct->itemHeight=22;
CDialog::OnMeasureItem(nIDCtl, lpMeasureItemStruct);
}
..so I Changed changing point row height!!
( and you must set "Owner draw fixed" of property)
void CParentDlg::OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct)
{
// TODO:
if(nIDCtl==IDC_LIST_MYLIST)
{
lpMeasureItemStruct->itemHeight=22;
}
CDialog::OnMeasureItem(nIDCtl, lpMeasureItemStruct);
}
"CParentDlg" is Dlg which has MyListCtrl's instance, and
"IDC_LIST_MYLIST" is instance of MyListCtrl!!
Originally posted by: Semferr
Kindly,
I followed this method, but nothing to be shown because the DrawItem is not called at all. What's happen?
Semferr
Originally posted by: Allan Gallano
You can easily change the row height by making the imagelist icon size to your desired size...( and fool the user by drawing your icon not to the actual size).
ex. imagelist.Create( 24, 24, ILC_COLOR4, 10, 10 );
m_cList.SetImageList( &imageList, LVSIL_SMALL );
if your icon has 16x16, you make your row height 50% bigger.
seems awkward, but works with ease.
Reply
Originally posted by: cyber_being
Is it possible to changing row height without using owner-draw draw because I know the a tree item can be changed by CTreeCtrl::SetItemHeight()?
Thanks you
Reply