Hello guys,
im not very familiar with autoit. can u guys help me on that one. the background still is black
thanks in advance.
#AutoIt3Wrapper_Res_File_Add=D:\test.jpg, rt_rcdata, TEST_JPG_1
#include <GuiconstantsEx.au3>
#include <WindowsConstants.au3>
#include <SendMessage.au3>
#include "resources.au3"
Global Const $SC_DRAGMOVE = 0xF012
HotKeySet("{F11}", "Close")
Func Close()
Exit
EndFunc
$hGUI = GUICreate("X", 300, 300, -1, -1, BitOR($WS_POPUP,$WS_BORDER), $WS_EX_TOPMOST)
$Pic = GUICtrlCreatePic("", 0, 0, 300, 300)
_ResourceSetImageToCtrl($Pic, "TEST_JPG_1")
GUISetState(@SW_SHOW)
GUICtrlSetState(-1, $GUI_DISABLE)
GUISetBkColor(0x000000, $hGUI)
GUICtrlCreateButton("Sample Button", 10, 10, 100, 30)
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_PRIMARYDOWN
_SendMessage($hGUI, $WM_SYSCOMMAND, $SC_DRAGMOVE, 0)
EndSwitch
WEnd