65.9K
CodeProject is changing. Read more.
Home

How to bring window to top with SetForegroundWindow()

starIconstarIconstarIcon
emptyStarIcon
starIcon
emptyStarIcon

3.50/5 (2 votes)

Dec 6, 2010

CPOL
viewsIcon

14820

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 :))

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 :))