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:

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 client | Windows 7 or Windows Vista with Service Pack 2 (SP2) and Platform Update for Windows Vista |
|---|---|
| Minimum supported server | Windows Server 2008 R2 or Windows Server 2008 with Service Pack 2 (SP2) and Platform Update for Windows Server 2008 |
| Windows SDK | Windows Software Development Kit (SDK) for Windows 7 |
Downloading the Sample
This sample is available in the following locations.
| Location | Path/URL |
|---|---|
| Windows SDK | \Program Files\Microsoft SDKs\Windows\v7.0\Samples\Multimedia\DirectWrite\PadWrite |
| Code Gallery | Download from MSDN Code Gallery |
Send comments about this topic to Microsoft
Build date: 3/7/2012