Z
Zebedee6
Guest
Hi
I have an SDI CFormView program and am placing another modeless dialog on it. As per code below. Trouble is the computer I am writing it on has a resolution of 3840 x 2160. The modeless dialog sits exactly where I want it. But when I run it on another computer with a resolution of 1920 X 1080 the right hand side (width) of the modeless dialog is too big and covers nearly a quarter of the CFormView display. I guess it is because of the 260 in the MoveWindow. Is there a way to fix this so it's the same on any resolution
CRect rc; GetWindowRect(&rc); CControlBtnsDlg *controlbtnsdlg = new CControlBtnsDlg(); controlbtnsdlg->Create(IDD_CONTROL_BTNS); controlbtnsdlg->MoveWindow(rc.left, rc.top, 260, rc.bottom - 300); controlbtnsdlg->ShowWindow(SW_SHOW);
Hope I have explained it OK..
Thank you
Continue reading...
I have an SDI CFormView program and am placing another modeless dialog on it. As per code below. Trouble is the computer I am writing it on has a resolution of 3840 x 2160. The modeless dialog sits exactly where I want it. But when I run it on another computer with a resolution of 1920 X 1080 the right hand side (width) of the modeless dialog is too big and covers nearly a quarter of the CFormView display. I guess it is because of the 260 in the MoveWindow. Is there a way to fix this so it's the same on any resolution
CRect rc; GetWindowRect(&rc); CControlBtnsDlg *controlbtnsdlg = new CControlBtnsDlg(); controlbtnsdlg->Create(IDD_CONTROL_BTNS); controlbtnsdlg->MoveWindow(rc.left, rc.top, 260, rc.bottom - 300); controlbtnsdlg->ShowWindow(SW_SHOW);
Hope I have explained it OK..
Thank you
Continue reading...