本帖最后由 weichenxiehou 于 2013-10-13 17:25 编辑
图片查看器里看起来很清晰的图标:
为什么显示在ListView里却是模糊的:
代码片段:Local $icoAdmin=".\res\Admin.ico"
Local $winUser = GUICreate("ListView 测试", 800, 600, -1, -1, $WS_SYSMENU)
Local $lvUsers=_GUICtrlListView_Create($winUser,"",2,2,790,458, _
$LVS_AUTOARRANGE+$LVS_ICON+$LVS_SORTASCENDING,$LVS_EX_DOUBLEBUFFER+$WS_EX_STATICEDGE)
Local $hImage=_GUIImageList_Create(32,32,5,2)
_GUIImageList_AddIcon($hImage,$icoAdmin)
_GUICtrlListView_SetImageList($lvUsers,$hImage,0)
_GUICtrlListView_AddItem($lvUsers,"Admin",0)
_GUICtrlListView_EnableGroupView($lvUsers)
_GUICtrlListView_InsertGroup($lvUsers,-1,1,"管理员")
_GUICtrlListView_SetItemGroupID($lvUsers,0,1)
GUISetState()
请指教,多谢! |