Evan Li
asked on
I could not set window to top
LRESULT CMainFrame::OnKeyStroke(WP ARAM wParam, LPARAM lParam)
{
AllowSetForegroundWindow(G etCurrentP rocessId() );
BringWindowToTop();
SetForegroundWindow();
return 0;
}
For above code, I am trying to get window to top, but instead of it goes to top, I have flash icon on taskbar. Does anyone knows why it does not my window does not go to top?
Thanks for any help.
Evan
{
AllowSetForegroundWindow(G
BringWindowToTop();
SetForegroundWindow();
return 0;
}
For above code, I am trying to get window to top, but instead of it goes to top, I have flash icon on taskbar. Does anyone knows why it does not my window does not go to top?
Thanks for any help.
Evan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ok, if it works, fine - I didn't mention this one because 'this function is deprecated and not intended for general use. It is recommended that you do not use it in new programs because it might be altered or unavailable in subsequent versions of Windows'.
Best regards,
ZOPPO
Best regards,
ZOPPO
ASKER
I call the function:
SwitchToThisWindow(GetSafe
Seems that it can bring the window to top.
Thank you for your help.
Evan