Radsam Posted January 25, 2005 Posted January 25, 2005 Hi, Could anyone post the correct syntax to use DLLCALL to extract icons from user32.dll? I want to use some of the icons in my gui but I am unsure on how to code it.
CyberSlug Posted January 25, 2005 Posted January 25, 2005 ; In this example, 13 and 15 are icon indices #include <GUIConstants.au3> GUICreate("Example") $button1 = GUICtrlCreateButton ("", 0,0,40,40,$BS_ICON) GUICtrlSetImage (-1, "shell32.dll", 13) $icon1 = GUICtrlCreateIcon ("shell32.dll",15, 50,0) GUISetState() While GuiGetMsg() <> $GUI_EVENT_CLOSE WEnd Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
jpm Posted January 25, 2005 Posted January 25, 2005 Radsam said: Hi,Could anyone post the correct syntax to use DLLCALL to extract icons from user32.dll? I want to use some of the icons in my gui but I am unsure on how to code it.<{POST_SNAPBACK}>I am not sure you can really use what you can extract with DLLCALL but the example of CyberSlug is perfect for use with GUI AutoIt Functions
Richard Robertson Posted January 25, 2005 Posted January 25, 2005 you could get an icon editor and open the dll into it, then just save the icon you want
Radsam Posted January 25, 2005 Author Posted January 25, 2005 Thanks CyberSlug. I encorporated your suggestion in my application.
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