问题描述
您好!
我无法在此CListCtrl中更改行的大小:
Hello!
I can't change size of my rows in this CListCtrl:
class CResolutionListCtrl : public CMFCListCtrl
这是一个我在课堂上实现的方法,根据不同的教程:
That's a method that I realize in class, according different tutorials:
afx_msg void MeasureItem ( LPMEASUREITEMSTRUCT lpMeasureItemStruct );
virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
afx_msg void OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct);
afx_msg void OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult);
ON_NOTIFY_REFLECT(NM_CUSTOMDRAW,OnCustomDraw)
ON_MESSAGE(WM_SETFONT, OnSetFont)
ON_WM_MEASUREITEM_REFLECT()
ON_WM_MEASUREITEM()
我无法以任何方式改变身高:
甚至这个非常受欢迎的教程
[]
实际上我的OnMeasureItem和MeasureItem从不打电话。我已经尝试过改变不同的标志,例如:
所有者Draw等
请提供一些简单的例子来改变单元格的大小,因为我找到的所有东西都非常多编码或不工作。
非常感谢
I can't change height in any ways:
even with this very popular tutorial
Changing Row Height in an owner drawn Control[^]
And actually my OnMeasureItem and MeasureItem never call. I've already tried change different flags like:
owner Draw etc.
Please provide some simple example to change size of cell, because everything that I found is really a lot of coding or doesn't work.
Thank you a lot
推荐答案
这篇关于如何在CListCtrl中更改行的高度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!