englm
asked on
Need example of using GetWindowHwnd and SetWindowPos
I am trying to set the postion of a Dialog box in my application. I was looking into how to use the SetWindowPos function, but do not know how to implement this in the dialog's OnInitDialog call. Apparently i need to get the handle of the dialog first.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
By the way, MoveWindow() gets the job done much easier, if all you want is move or resize the window.
Right. If you don't need to set the Z-order of the window (position it "behind" or "in front of" other windows) than MoveWindow() is better.