The following Code maximises a dialog on the second screen.
The code is available for download:
DrawOnSecondScreen.zip (43,9 KiB)
void DlgSecondScreen::ResizeDialog(const CRect newRect)
{
// Resize Dialog
SetWindowPos(&CWnd::wndTop, newRect.left, newRect.top, newRect.right, newRect.bottom,
SWP_SHOWWINDOW | // Displays the window.
SWP_NOCOPYBITS // Do NOT Save...