| |
|
|
|
Description:
IsWindowVisible checks whether a Window in the moment visible is. thereby checks The function the existence the Stils WS_VISIBLE.
Deklaration:
DEF @IsWindowVisible(1) !USER32,IsWindowVisible
Parameter:
1.Parameter: lever the Fensters as LongInt.
Return Value:
0 for invisible, 1 for visible.
Examples:
CompileMarkSeparationDEF @IsWindowVisible(1) !"USER32","IsWindowVisible"
Windowstyle 31
Windowtitle "Ist das Fenster sichtbar?"
Window 0,0-640,440
Declare Dialog&,Visibility&,RANDO&
Windowstyle 16
Let Dialog&=@Createwindow(%HWND,"Weg oder da?",100,100,300,300)
While 0=0
Sleep 50
LET RANDO&=@RND(500)
IF @and(RANDO&>=400,RANDO&<=402)
@Showwindow(Dialog&,RANDO&-400)
endif
Windowstyle 16
LET Visibility&=@IsWindowVisible(Dialog&)
IF Visibility&=0
Drawtext 0,0,"Unsichtbar "
ElseIf Visibility&=1
Drawtext 0,0,"Sichtbar "
endif
Wend
[keywords:e75f1a86a7] Window visible invisible cache WS_VISIBLE [/keywords:e75f1a86a7] |
|
|
| |
|
|