找回密码
 加入
搜索
查看: 1814|回复: 0

[GUI管理] 很迷茫GUICtrlCreateListView怎样设置背景

[复制链接]
发表于 2011-3-29 16:23:24 | 显示全部楼层 |阅读模式
GUICtrlCreateListView 创建的控件貌似没办法用_GUICtrlListView_SetBkImage设置背景

使用GUICtrlGetHandle获得句柄后再_GUICtrlListView_SetBkImage,在windows 7中有效,但在 windows xp中无用。_GUICtrlListView_SetBkImage还是返回false,经调试在到这里错了。
If _WinAPI_InProcess($hWnd, $_lv_ghLastWnd) Then
                        ConsoleWrite("1")
                        DllStructSetData($tImage, "Image", $pBuffer)
                        $iRet = _SendMessage($hWnd, $LVM_SETBKIMAGEW, 0, $pImage, 0, "wparam", "ptr")
如果使用_GUICtrlListView_Create的话,背景是没问题,但就不能用GUICtrlSetResizing了..

有没有遇到同样情况?怎样解决好?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-21 10:41 , Processed in 0.100248 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表