Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Selecting popups in an if statement
#2
First argument of win is window name, not handle (win itself returns window handle). Other syntax - win(x y).

If you have window handle and want to check whether it is popup, get window style and check for WS_POPUP flag.

Code:
Copy      Help
[color=blue]int [/color]h = [color=blue]win[/color](571 460)
[color=blue]if[/color](GetWinStyle(h)&WS_POPUP)
,[color=blue]out [/color]"yes"
[color=blue]else[/color]
,[color=blue]out [/color]"no"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)