#include <WinAPI.au3>
#include <Constants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Const $STM_SETIMAGE = 0x172
$hGUI = GUICreate("Test", 400, 300)
$hStatic = _WinAPI_CreateWindowEx(0, "Static", "", BitOR($WS_CHILD, $WS_VISIBLE, $SS_BITMAP), 5, 5, 0, 0, $hGUI, 1)
$pLibrary = _WinAPI_LoadLibrary("cryptui.dll")
$hBitmap = _WinAPI_LoadImage($pLibrary, 4103, $IMAGE_BITMAP, 0, 0, $LR_DEFAULTSIZE)
_SendMessage($hStatic, $STM_SETIMAGE, $IMAGE_BITMAP, $hBitmap)
_WinAPI_FreeLibrary($pLibrary)
GUISetState()
While GUIGetMsg() <> -3
WEnd
|