Export (0) Print
Expand All

Draw Rectangle Example

Description

This example draws a grid background and several rectangles. It produces the following output.

Illustration of two rectangles on a grid background

Requirements

Minimum supported clientWindows 7 or Windows Vista with Service Pack 2 (SP2) and Platform Update for Windows Vista
Minimum supported serverWindows Server 2008 R2 or Windows Server 2008 with Service Pack 2 (SP2) and Platform Update for Windows Server 2008
Windows SDKWindows Software Development Kit (SDK) for Windows 7

 

Downloading the Sample

This sample is available in the following locations.

LocationPath/URL
Code GalleryDownload from MSDN Code Gallery

 

View the Example Files

File
DrawRectangleExample.vcproj
DeclareDPIAware.manifest
DemoApp.h
DemoApp.cpp

 

 

 

Send comments about this topic to Microsoft

Build date: 9/6/2011

Community Additions

Show:
© 2014 Microsoft