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.
Thanks,
Anonymous
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