kaihsin1703 發表於 2022-12-21 11:07

_WinAPI_EnableWindow

https://pl.wikibooks.org/wiki/AutoIt/WinAPI#WinAPI_EnableWindow

#include <WindowsConstants.au3>#include <WinAPI.au3>#include <GUIConstantsEx.au3>$hGui = GUICreate('Okno testowe', 250, 260, 700, -1, $WS_VISIBLE, $WS_EX_TOPMOST)$hButton = GUICtrlCreateButton("Przycisk", 90, 30, 70)_WinAPI_EnableWindow($hGui, False)MsgBox(0x40000, 'Test', 'W tej chwili okno testowe jest niedostępne,' & @LF & 'po naciśnięciu OK zostanie udostępnione.')_WinAPI_EnableWindow($hGui, True)MsgBox(0x40000, 'Test', 'Okno testowe jest dostępne.')
頁: [1]
查看完整版本: _WinAPI_EnableWindow