GordonFreeman Posted April 2, 2014 Posted April 2, 2014 Hi guys. I using this func to create a icon and set as pic of a button but with this func i need save the icon as a file. I want set directly. how i can do it? $sSFile = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" $sDFile = @DesktopDir & "\d\test.ico" $hIcon = _WinAPI_ShellExtractIcon($sSFile,0,32,32) _WinAPI_SaveHICONToFile($sDFile,$hIcon) Frabjous Installation
Solution FireFox Posted April 3, 2014 Solution Posted April 3, 2014 Hi, This is working fine for me : $sSFile = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" GUICtrlCreateButton("", 10, 10, 80, 80, $BS_BITMAP) _GUICtrlButton_SetImage(GUICtrlGetHandle(-1), $sSFile, 0, True) Br, FireFox.
GordonFreeman Posted April 3, 2014 Author Posted April 3, 2014 Thanks @Firefox, exactly what i want! Frabjous Installation
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