API call to make window "Always on top" attribute

SetWindowPos() is not the most obvious API call, but it is the one to use.

SetWindowPos( hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW );
Previous Post
Next Post
Related Posts