Click here to Skip to main content
15,893,381 members
Articles / Programming Languages / C++

How to bring window to top with SetForegroundWindow()

Rate me:
Please Sign up or sign in to vote.
3.50/5 (2 votes)
19 Dec 2010CPOL 14.5K   2  
At first site, you can use BOOL WINAPI ShowWindow(__in HWND hWnd,__in int nCmdShow); with SW_RESTORE in nCmdShow (msd link) and maybe it needs to activate window before (not tested :))

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Engineer
Belarus Belarus
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions