找回密码
 加入
搜索
查看: 15517|回复: 4

[交流] 使用皮肤后,Graphic控件中的图形不显示,为何?【已解决】

[复制链接]
发表于 2013-6-11 10:02:53 | 显示全部楼层 |阅读模式
本帖最后由 dreamneo 于 2013-7-5 00:54 编辑

不管是SKF皮肤还是,SHE皮肤,使用后,绘图控件中的图形都不显示,我设置了 GUI_SHOW和GUI_ONTOP,都不好使,使用SHE皮肤,会闪现一个图形,就没了,这是为什么呀?其他控件显示都正常啊!





解决了,使用Uskin.DLL,加Windows主题文件,可以显示正常,皮肤也加载正常

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
发表于 2013-6-13 12:56:35 | 显示全部楼层
看看源码?
 楼主| 发表于 2013-6-16 21:49:40 | 显示全部楼层
回复 2# xms77

代码如下,谢谢
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
FileInstall("Black.she", @TempDir & "\Black.she", 1)
FileInstall("Skin.dll", @TempDir & "\Skin.dll", 1)
$skins = @TempDir & "\Black.she"
$dll = DllOpen(@TempDir & "\Skin.dll")
DllCall($dll, "int", "SkinH_AttachEx", "str", $skins, "str", "mhgd")
DllCall($dll, "int", "SkinH_SetAero", "int", 1)
$Form1 = GUICreate("平直度判断工具", 905, 585, @DesktopWidth / 2 - 452, @DesktopHeight / 2 - 292)
$ButtonDown = GUICtrlCreateButton("下一个", 257, 392, 65, 33)
$Graphic1 = GUICtrlCreateGraphic(384, 24, 500, 400)
GUICtrlSetGraphic(-1, $GUI_GR_RECT, 0, 0, 500, 400)
GUISetState(@SW_SHOW)
While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
                Case $GUI_EVENT_CLOSE
                        Exit
        EndSwitch
WEnd
发表于 2013-8-7 07:52:11 | 显示全部楼层
感谢分享!效果很棒~
发表于 2013-9-4 16:08:55 | 显示全部楼层
Know more.
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-4-23 18:04 , Processed in 0.073325 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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