Problem with OnMeasureItem()
Posted
by Isuru
on Stack Overflow
See other posts from Stack Overflow
or by Isuru
Published on 2010-04-09T06:21:56Z
Indexed on
2010/04/09
6:53 UTC
Read the original article
Hit count: 476
Hi,
I used OnMeasureItem() in my MFC ListControl to increase the height of the rows, and added WM_ON_MEASUREITEM() message in the Map. THe code I used is as follows:
void CListCtrlTestDlg::OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct)
{
if( nIDCtl == IDC_LIST1 )//IDC_LIST1 is my ListControl ID
{
lpMeasureItemStruct->itemHeight += 20;
}
}
It doesn't Work. Any suggestion what the problem is???
Thank You!!!!
© Stack Overflow or respective owner