SetWindowPos(...)
can someone give me an example of how to use it properly?
I can't seem to get it working.
I just want to make the window always on top.
SetWindowPos(...)
can someone give me an example of how to use it properly?
I can't seem to get it working.
I just want to make the window always on top.
Maybe something like:
If not, then look up the parameters it takes on MSDN and experiment.Code:SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers