Sign in to follow this  
Followers 0
NELyon

Setting Window Region

4 posts in this topic

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

post-12929-1163552119_thumb.gif

Share this post


Link to post
Share on other sites



Bump Please?

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by codemyster

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0