NELyon Posted November 15, 2006 Share Posted November 15, 2006 I'm trying to set this GUI with a transparent GIF. Instead of getting a window region, i get a Windows Classic title bar. #Include <GUIConstants.au3> $hwnd = GUICreate("Test", 640, 480) $rgn = GUICtrlCreatePic("trans.gif", 0, 0, 640, 480) SetWindowRgn($hwnd,$rgn) GUISetState() While 1 Sleep(2000) WEnd Func SetWindowRgn($h_win, $rgn) DllCall("user32.dll", "long", "SetWindowRgn", "hwnd", $h_win, "long", $rgn, "int", 1) EndFunc the GIF is attatched Link to comment Share on other sites More sharing options...
NELyon Posted November 15, 2006 Author Share Posted November 15, 2006 Bump Please? Link to comment Share on other sites More sharing options...
NELyon Posted November 15, 2006 Author Share Posted November 15, 2006 (edited) Set the window region to the Gif image. I have seen you do it with your DLL, so i started using that, but then i saw someone do it only with user32.dll Edit: Yes, i have no idea what i'm doing. I'm a n00b in DLL calls Edited November 15, 2006 by codemyster Link to comment Share on other sites More sharing options...
NELyon Posted November 15, 2006 Author Share Posted November 15, 2006 Yes, every other pixel is transparent. I can't find the DLL call to create a region. I looked at your Text region script, but the Region looked like it was for only text. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now