Positioning the dialog box in the centre of the screen
- by ame
I have a dialog box developed in mfc for a Windows CE device and want it to occupy the entire screen. I used the following code to center my dialog box on the lcd screen of the device:
CWnd* pWnd = GetDesktopWindow();
CenterWindow(pWnd);
However, I still get a tiny sliver of space on the left side of the dialog box, resizing the dialog merely…