Enforcer Posted October 8, 2009 Share Posted October 8, 2009 I made a simple GUI, and put on it picture (disabled (only for BG)), then added other picture on it - and that picture must have transporent backgound. AND I DON't KNOW HOW TO DO IT... so many examples, but that didn't get it. This thig i realy need to make contact list for my messager =) Eny help, eny links ? [RU] Zone Link to comment Share on other sites More sharing options...
wolf9228 Posted October 8, 2009 Share Posted October 8, 2009 I made a simple GUI, and put on it picture (disabled (only for BG)), then added other picture on it - and that picture must have transporent backgound. AND I DON't KNOW HOW TO DO IT... so many examples, but that didn't get it. This thig i realy need to make contact list for my messager =) Eny help, eny links ? expandcollapse popup#include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #include <GDIPlus.au3> Opt("OnExitFunc", "endscript") $hWnd = GUICreate("Form", 500, 500, 303, 100) _GDIPlus_Startup () Global $W = _WinAPI_GetClientWidth($hWnd), $H = _WinAPI_GetClientHeight($hWnd) Global $hImage = _GDIPlus_ImageLoadFromFile ("messenger_big.gif") Global $hBitmap = _WinAPI_CreateSolidBitmap($hWnd, 15526360, $W, $H) ; 15526360 ==> BkColor $hBitmap = _GDIPlus_BitmapCreateFromHBITMAP ($hBitmap) GUIRegisterMsg($WM_ERASEBKGND, "WM_ERASEBKGND") GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Func WM_ERASEBKGND($hWnd, $Msg, $wParam, $lParam) $hGraphic = _GDIPlus_GraphicsCreateFromHDC ($wParam) _GDIPLus_GraphicsDrawImageRect($hGraphic, $hBitmap, 0, 0,$W, $H) _GDIPLus_GraphicsDrawImageRect($hGraphic, $hImage, 0, 0,$W, $H) Return True EndFunc Func endscript() _WinAPI_DeleteObject ($hBitmap) _WinAPI_DeleteObject ($hImage) _GDIPlus_ShutDown () EndFunc صرح السماء كان هنا Link to comment Share on other sites More sharing options...
Yashied Posted October 8, 2009 Share Posted October 8, 2009 (edited) I made a simple GUI, and put on it picture (disabled (only for BG)), then added other picture on it - and that picture must have transporent backgound. AND I DON't KNOW HOW TO DO IT... so many examples, but that didn't get it.This thig i realy need to make contact list for my messager =)Eny help, eny links ?Look at this. Zoom Edited October 8, 2009 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... 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