Jump to content

Larry's Bitmap to region DLL problem


 Share

Recommended Posts

I'm working on a skin for my SimpleEdit program. I got the skin on, added the Editbox, and a button so far. But heres the problem. I want the controls to be used, so i put a @SW_DISABLE on the GUICtrlCreatePic part, but it got rid of the skin, and changed it to a blank colored GUI with the edit and the button.

Heres my code:

#include <GUIConstants.au3>
$gui = GUICreate("",504,648,-1,-1,$WS_POPUP)
GUICtrlCreatePic("skin.bmp",0,0,504,648)
$Edit1 = GUICtrlCreateEdit("", 30, 110, 440, 410)
GUICtrlSetBkColor($Edit1, 0x555ff)
$Button1 = GUICtrlCreateButton("Save", 34, 529)

$a = DLLCall(".\BMP2RGN.dll","int","BMP2RGN", _
            "str",".\larry.bmp", _
            "int",0, _
            "int",0, _
            "int",0)

SetWindowRgn($gui, $a[0])

GUISetState()
While 1
sleep(2000)
WEnd

Func SetWindowRgn($h_win, $rgn)
    DllCall("user32.dll", "long", "SetWindowRgn", "hwnd", $h_win, "long", $rgn, "int", 1)
EndFunc

Grrr... i am out of space for attatchments. You can search for larry's post, but the pic you might have to do without :\

AHH???? What happened? 3 TOPICS?

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...