Forum > General

GetForegroundWindow and other

(1/1)

xinyiman:
Hello I am creating a program that uses GetForegroundWindow to figure out which window I'm currently using in an external program. But I also understand how I can compare it with the handle of my program. To prevent the two programs do not coincide. Does anyone have an idea?!

Shebuka:
Compare GetForegroundWindow with MainForm.Handle, both are integers.

btw i don't understand well your question...

xinyiman:
Traveled road, but I SigSev returns error.

xinyiman:
Or rather, on the main form as you said it works, but if I want to also identify the handle of a window invoked from the main window gives me the error sigsav.

Navigation

[0] Message Index

Go to full version