Hier mal ein kompletter Beispielcode. Kann sein, dass es an dem Style liegt. Habe noch nie verstanden wofür manche gut sind
Spoiler anzeigen
[autoit]
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region
$Form1 = GUICreate("Form1", 625, 445, 192, 124)
$Pic1 = GUICtrlCreatePic("FilePath", 40, 152, 100, 100, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Pic1
MsgBox(0,"","Hi")
EndSwitch
WEnd