使用皮肤后,Graphic控件中的图形不显示,为何?【已解决】
本帖最后由 dreamneo 于 2013-7-5 00:54 编辑不管是SKF皮肤还是,SHE皮肤,使用后,绘图控件中的图形都不显示,我设置了 GUI_SHOW和GUI_ONTOP,都不好使,使用SHE皮肤,会闪现一个图形,就没了,这是为什么呀?其他控件显示都正常啊!
解决了,使用Uskin.DLL,加Windows主题文件,可以显示正常,皮肤也加载正常 看看源码? 回复 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 感谢分享!效果很棒~ Know more.{:face (197):}
页:
[1]