- Сообщения
- 3,557
- Репутация
- 628
Как это победить?
пример кода
пример кода
Код:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <StaticConstants.au3>
$Form1 = GUICreate('Form1', 528, 358, -1, -1, $WS_POPUP)
$Button1 = GUICtrlCreateButton('Стиль', 24, 240, 75, 25)
$Button2 = GUICtrlCreateButton('Иконка', 240, 248, 75, 25)
GUISetState(@SW_SHOW)
Local $stl
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
If Not $stl Then
GUISetStyle(BitOR($WS_POPUP, $WS_THICKFRAME))
$stl = 1
Else
GUISetStyle($WS_POPUP)
$stl = 0
EndIf
Case $Button2
$pic = GUICtrlCreateIcon('', -1, 50, 50, 32, 32)
GUICtrlSetImage($pic, 'icon.ico')
EndSwitch
WEnd