Window position?
-
I wan to get the position of the window? I use SetWindowPos(..) to set my app on top of all other apps. But I want to get the window's current positon on the desktop to assign the values in the function to stay where it was before! HOW? Show me code example! I know this is to easy but you can show me dude! :) :) :) :rose: :rose: :rose: :rose: :rose: :rose: ------------------------------ ©0d3 ©®4©k3® - That's me! :) ------------------------------
-
I wan to get the position of the window? I use SetWindowPos(..) to set my app on top of all other apps. But I want to get the window's current positon on the desktop to assign the values in the function to stay where it was before! HOW? Show me code example! I know this is to easy but you can show me dude! :) :) :) :rose: :rose: :rose: :rose: :rose: :rose: ------------------------------ ©0d3 ©®4©k3® - That's me! :) ------------------------------
If you want to place a window top most just call SetWindowPos like this:
SetWindowPos(&wndTopMost, 0, 0, 0, 0, SWP_NOMOVE|SWP_NOSIZE);
Did I understand you right or I missed something?
-
I wan to get the position of the window? I use SetWindowPos(..) to set my app on top of all other apps. But I want to get the window's current positon on the desktop to assign the values in the function to stay where it was before! HOW? Show me code example! I know this is to easy but you can show me dude! :) :) :) :rose: :rose: :rose: :rose: :rose: :rose: ------------------------------ ©0d3 ©®4©k3® - That's me! :) ------------------------------
Have u tried : BOOL GetWindowRect( HWND hWnd, // handle to window LPRECT lpRect // window coordinates );
Gavin Taylor w: http://www.gavintaylor.co.uk