JUSTIFY: Illustrates Text Alignment

JUSTIFY uses the TextOut, SetTextJustification, and GetTextExtent functions to justify a paragraph. You can choose an option from the Alignment menu to align the first paragraph of Herman Melville's "Moby Dick" on the left or right, center it, or justify it. You can also menu options to switch typefaces and change font attributes.

JUSTIFY is a companion application for "Programming Windows" by Charles Petzold. The source code for this application has not been modified or tested by Microsoft Corporation.

{ewc navigate.dll, ewbutton, /Bcodeview /T"Click to open or copy files in the justify project." /C"samples}