Jump to content
Sign in to follow this  

Larry's Bitmap to region DLL problem

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)
$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, _

SetWindowRgn($gui, $a[0])

While 1

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

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...