Jump to content

Setting Window Region


NELyon
 Share

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...