1 out of 1 rated this helpful - Rate this topic

PadWrite Layout Sample

Demonstrates DirectWrite layout API, ranged text formatting, text metrics, hit testing, inline images, drawing effects and more, with a sample text editor. The following screen shot shows some of the formatting options available with DirectWrite.

This topic has the following parts:

Screen shot of the PadWrite sample with text that has various formatting options applied

The PadWrite Layout Sample consists of the following files.

File
PadWrite.h
Common.h
DrawingEffect.h
EditableLayout.h
InlineImage.h
RenderTarget.h
TextEditor.h
resource.h
PadWrite.cpp
EditableLayout.cpp
InlineImage.cpp
RenderTarget.cpp
TextEditor.cpp
Application.rc
PadWrite.sln
PadWrite.vcproj
Application.manifest

 

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
Windows SDK\Program Files\Microsoft SDKs\Windows\v7.0\Samples\Multimedia\DirectWrite\PadWrite
Code GalleryDownload from MSDN Code Gallery

 

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ