-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtest.au3
More file actions
32 lines (23 loc) · 754 Bytes
/
test.au3
File metadata and controls
32 lines (23 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
Local $sFilePath = "..\GUI\logo4.gif"
; Create a GUI with various controls.
Local $hGUI = GUICreate("Example", 400, 100)
GUICtrlCreatePic("..\GUI\msoobe.jpg", 0, 0, 400, 100)
; Display the GUI.
GUISetState(@SW_SHOW, $hGUI)
Local $hChild = GUICreate("", 169, 68, 20, 20, $WS_POPUP, BitOR($WS_EX_LAYERED, $WS_EX_MDICHILD), $hGUI)
; Create a picture control with a transparent image.
GUICtrlCreatePic($sFilePath, 0, 0, 169, 68)
; Display the child GUI.
GUISetState(@SW_SHOW)
; Loop until the user exits.
While 1
Switch GUIGetMsg()
Case $GUI_EVENT_CLOSE
ExitLoop
EndSwitch
WEnd
; Delete the previous GUIs and all controls.
GUIDelete($hGUI)
GUIDelete($hChild)