SAMPLE: Mfccdc Demonstrates Viewport and Mapmode Use in MFCID: Q195028
|
The Mfccdc sample demonstrates how to set the Mapmode, Viewport, and Window
parameters, and draws a rectangle based on given logical coordinates; then,
the sample calculates the resulting device units.
The sample shows how to use the following functions:
SetMapMode()
SetWindowExt()
SetViewportExt()
SetWindowOrg()
SetViewportOrg()
LPtoDP()
NormalizeRect()
The following file is available for download from the Microsoft Software Library:
Mfccdc.exeFor more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
Release Date: SEP-10-1998
Q119591 How to Obtain Microsoft Support Files from Online Services
VC Online help - "CDC class members" and "Converting from Device
Coordinates to Logical Coordinates."
Charles Petzold's book, "Programming Windows," ISBN 1-55615-264-7.
Additional query words: kbDSupport mapmode viewport MM_ISOTROPIC MM_ANISOTROPIC MM_LOENGLISH MM_HIENGLISH MM_TWIPS MM_TEXT
Keywords : kbfile kbMFC kbVC400 kbVC410 kbVC420 kbVC500 kbVC600
Version : WINNT:4.0,4.1,4.2,5.0,6.0
Platform : winnt
Issue type :
Last Reviewed: August 5, 1999