How do you programmatically resize and move windows with Windows API?
The scenario is: I want to vertically tile two windows (80%/20% width proportions).
For flicker-free, simultaneously positioning two (or more) windows, your best bet is to use BeginDeferWindowPos(), DeferWindowPos() and EndDeferWindowPos(). In your case, since you're moving two at the same time, this is your best bet.
Three older, simpler functions you might also consider are SetWindowPos(), MoveWindow() and AdjustWindowRectEx().
1.4m articles
1.4m replys
5 comments
57.0k users