积极答复者
NM_CUSTOMDRAW 改变listctrl的行高

问题
答案
-
- Modify the style of the list control to "owner draw fixed" (
LVS_OWNERDRAWFIXED
). - Overload
CListCtrlEx::DrawItem()
. - A
WM_MEASUREITEM
---------------------------------------------------------------------------------------------------------
NM_CUSTROMDRAW好像修改不了行高,您还是重写CListCtrl类吧
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.
- 已标记为答案 Helen Zhao 2012年4月17日 2:05
- Modify the style of the list control to "owner draw fixed" (
全部回复
-
http://www.codeproject.com/Articles/1401/Changing-Row-Height-in-an-owner-drawn-Control
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.
-
- Modify the style of the list control to "owner draw fixed" (
LVS_OWNERDRAWFIXED
). - Overload
CListCtrlEx::DrawItem()
. - A
WM_MEASUREITEM
---------------------------------------------------------------------------------------------------------
NM_CUSTROMDRAW好像修改不了行高,您还是重写CListCtrl类吧
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.
- 已标记为答案 Helen Zhao 2012年4月17日 2:05
- Modify the style of the list control to "owner draw fixed" (