Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Load resource from .msstyles DLL using WinAPI?

$
0
0
I'm trying to display bitmaps stored inside a theme resource dll on a GUI. I'd like to be able to specify the name as it is displayed in ResHacker for the function call. I can extract strings as they are numbered but the bitmap images listed under RT_BITMAP are not numbered - I'm using Trancexx's resource viewer.

I've tried.

[ autoit ]      
#Include <WinAPI.au3> Global Const $STM_SETIMAGE = 0x0172 $hTest = GUICreate("", - 1, - 1, -1, -1) $hPic = GUICtrlCreatePic("", -1, -1, 50, 22) Local $hInstance = _WinAPI_LoadLibrary($sThemeFile) Local $hBitmap = _WinAPI_LoadImage($hInstance, "((((Some Integer that I can't find))))", $IMAGE_BITMAP, 0, 0, $LR_DEFAULTCOLOR) GUICtrlSendMsg($hPic, $STM_SETIMAGE, $IMAGE_BITMAP, $hBitmap) GUISetState(@SW_SHOW)

Thanks,
Anonymous

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>