Weirdness with SetWindowExt and SetWindowExtEx (negative height, upside down)
问题 I am running into a weird behavior regarding SetViewportExt() and SetViewportExtEx() . My MFC application uses MM_ISOTROPIC mapping for setting up the view device context and configures the device context as follows: m_dc.SetMapMode( MM_ISOTROPIC ); // Set the window extent (document space) CSize docSizeLP = GetDocumentSizeLP(); m_dc.SetWindowExt(docSizeLP.cx, docSizeLP.cy); // Next set the viewport extent CSize docSizeDP = GetDocumentSizeDP(); m_dc.SetViewportExt((int) (docSizeDP.cx * fZoom)