Jump to content


Photo

Unload Windows Theme from Gui


  • Please log in to reply
7 replies to this topic

#1 Klark92

Klark92
  • Members
  • 854 posts

Posted 20 June 2012 - 10:49 AM

I searched that in Msdn but I got nothing ... Any Idea ?

#2 tomoe_uehara

tomoe_uehara
  • Members
  • 2077 posts

Posted 20 June 2012 - 10:53 AM

Gui -Theme


#3 Klark92

Klark92
  • Members
  • 854 posts

Posted 20 June 2012 - 10:57 AM

think it when you stop theme service ...
Not only controls .. Caption, from Ram.. shorty everyting ..

#4 Roninz

Roninz
  • Guests

Posted 20 June 2012 - 10:58 AM

Not exactly what u want, but u can remove borders by
-caption
then u can place a picture control on background.. This picture control can have pic of standard windows border which can be resised as required.. There might be a way to do it, but this is just a workaround..

#5 Klark92

Klark92
  • Members
  • 854 posts

Posted 20 June 2012 - 11:00 AM

This is what I mean ...

#6 tomoe_uehara

tomoe_uehara
  • Members
  • 2077 posts

Posted 20 June 2012 - 11:36 AM

You should post that information in your first post, I'm not a mind reader.. :(

#7 JSLover

JSLover
  • Members
  • 920 posts

Posted 20 June 2012 - 02:19 PM

FOUND IT!!!

uxtheme\SetThemeAppProperties
ret:=IsAppThemed:=DllCall("uxtheme\IsAppThemed")

Gui, New, , Default GUI

Gui, Add, Checkbox, , Am I themed?

Gui, Show, % ""
	. " X" 19+19
	. " Y" 19+19
	. " W" 119*2
	. " H" 119*2

if (IsAppThemed) {
	ret:=DllCall("uxtheme\SetThemeAppProperties"
		, "UInt", 0)
}

Gui, New, , Non-Themed GUI

Gui, Add, Checkbox, , Am I themed?

Gui, Show, % ""
	. " X" 119*2+19*3
	. " Y" 19+19
	. " W" 119*2
	. " H" 119*2


#8 Klark92

Klark92
  • Members
  • 854 posts

Posted 20 June 2012 - 05:26 PM

that is enough ^^ :
ret:=DllCall("uxtheme\SetThemeAppProperties"
      , "UInt", 0)

thanks "JSLover" you hitted to 12 :lol: