T
Thomas Weise
In order to find out, if my app is currently active, I'm using API function
GetForegroundWindow().
However, as soon as my app opens a dialog (specific window or even just a
message box), the handle of the dialog form is returned by
GetForegroundWindow(). In case of a message box, I don't even know the
handle and have no idea of how to retrieve it.
I have tried API function EnumChildWindows(), but that returns only the
rectangles the main form is composed of; apparently it does not return an
open message box.
Is there a feasible way of determining of my app is the active app?
Thanks in advance for you help!
Thomas
GetForegroundWindow().
However, as soon as my app opens a dialog (specific window or even just a
message box), the handle of the dialog form is returned by
GetForegroundWindow(). In case of a message box, I don't even know the
handle and have no idea of how to retrieve it.
I have tried API function EnumChildWindows(), but that returns only the
rectangles the main form is composed of; apparently it does not return an
open message box.
Is there a feasible way of determining of my app is the active app?
Thanks in advance for you help!
Thomas