I have code which creates a dialog-based window:
m_window = CreateDialogParam(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_DIALOG1), NULL, DlgProc, 0);
ShowWindow(m_window, SW_SHOW);
How to change the size and the position of that dialog-based window programmatically not from the resource(.rc) file?