This is a discussion on Bringing into focus a window created in different DLL - Programmer ; Hi, I am creating a window in a DLL and I am getting the window's handle from the DLL in my application. Now I want to use that handle to bring the window to focus at a later point of ...
Hi,
I am creating a window in a DLL and I am getting the window's handle from
the DLL in my application. Now I want to use that handle to bring the window
to focus at a later point of time.
This is the piece of code I am using
::SetActiveWindow(hWnd);
::SetForegroundWindow(hWnd);
::SetFocus(hWnd);
But the window never comes to focus. Am I missing something here? Can
anybody help me?
Regards
Sridhar