Jump to content

How to set handle of icon as an img of a button control


Go to solution Solved by FireFox,

Recommended Posts

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