The DM_REPOSITION message repositions a top-level dialog box so that it fits within the desktop area. An application can send this message to a dialog box after resizing it to ensure that the entire dialog box remains visible.
DM_REPOSITION
wParam = 0;
lParam = 0;
Parameters
This message has no parameters.
Return Values
This message has no return value.
Remarks
This message has no effect if the dialog box is a child window.