This section contains sample code that demonstrates the creation and use of a simple pen-selection dialog box. The dialog box is a modified ChooseColor common dialog box which lets the user select a pen color, width, line-style, and join-style attribute. The following illustration shows the dialog box:
Pen-Selection Dialog Box