External Windows

BlitzPlus Forums/BlitzPlus Programming/External Windows

B is a number is hexadecimal (base 16, 0-9,A-F... F=15 in decimal)

I've been comparing the two -- I'm not sure what handle WinDowse is displaying. I'm not sure I would trust it (since I can't figure it out). Try this:
w=CreateWindow("hi",100,100,100,100,0,3)
Print GetForegroundWindow()
Print FindWindowEx(0, 0, "BLITZMAX_WINDOW_CLASS", "hi")
Print QueryObject(w,1)
WaitKey()

See how they all display the same number? I don't know what WinDowse is displaying... I've never used it to get a window handle. (Also not that window handles will probably change each time you create/destroy the window.)

GetForegroundWindow is defined under .lib "user32.dll" as:
GetForegroundWindow%():"GetForegroundWindow"