Problem with OnMeasureItem()
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 proble开发者_Go百科m is???
Thank You!!!!
Just had to set 'Owner Draw Fixed' property to 'TRUE'. Works fine now :)
精彩评论