开发者

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 :)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜