How do I get the header height of a Listview

前端 未结 5 861
太阳男子
太阳男子 2020-12-31 09:58

Can somebody tell me how to get the header height of a ListView.

5条回答
  •  梦谈多话
    2020-12-31 10:19

    Verified this works in my Win32++ application:

    CHeader* hdr = GetHeader();
    CRect rcHdr = hdr->GetWindowRect();
    

    Header height is rcHdr.Height()

提交回复
热议问题