After creating a (large enough) window programatically, the resize code is bugged unless I handle the WM_GETMINMAXINFO message and set ptMaxTrackSize.x and ptMaxTrackSize.y large enough.
But then the window is a bit outside the screen (vertically). Horizontally I can still see the borders (thick border). I click on that border (WM_MOUSEACTIVATE message, which the program does not handle) and the window becomes aligned to the top screen border (visible title bar).
How can I do this programatically (fixing the vertical positioning)?
So instead of having to click the border, what can I do from my software to tell Windows to re-align the window?
is this what your looking for?
MoveWindow()