In my chat application, I create a new window for each private chat. I use
the FlashWindowEx API to flash the window if it's not the Foreground window.
I determine the Foreground window using the GetForegroundWindow API. So in
each window I have a line like such:
If pvchat.Handle.ToInt32 <> GetForegroundWindow Then
WindowFlash(pvchat.Handle.ToInt32)
The FlashWindowEx API is optioned to continuously flash the window until it
becomes the foreground window.
This works well with the main chat window. If it's not the foreground
window, or it's minimized, it continuously flashes until I bring it to the
front. However, the spawned private chat windows flash once and return to
normal. Does the spawned window somehow have the same handle as the main
window?