WMapMode.exe - Mapping Modes Code Example

ID: Q75736


The information in this article applies to:


SUMMARY

WMapMode.exe is a sample program in the Microsoft Software Library that demonstrates how to alter a window's logical coordinate system.


MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

~ WMapMode.exe
For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q119591 How to Obtain Microsoft Support Files from Online Services


WMAPMODE implements a modeless dialog box that allows the user to dynamically change the mapping mode attributes for the device context of WMAPMODE's main window. These attributes are the mapping mode, window origin, window extents, viewport origin, and viewport extents. Changing these attributes changes the main window's logical coordinate system.

To illustrate the effects of changes to its logical coordinate system, WMAPMODE's main window displays:

For more information on using mapping mode attributes, please refer to the following two books:

Additional query words:


Keywords          : kbfile kbsample kb16bitonly kbDevContext kbGDI kbSDKWin32 
Version           : WINDOWS:3.1
Platform          : WINDOWS 
Issue type        : kbinfo 

Last Reviewed: June 14, 1999