Skip to content

Commit e0f8379

Browse files
authored
Update cpen-class.md
0 pen width description is not clear.
1 parent aeae9c5 commit e0f8379

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎docs/mfc/reference/cpen-class.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ Specifies the style for the pen. For a list of possible values, see the *`nPenSt
177177
*`nWidth`*\
178178
Specifies the width of the pen.
179179

180-
- For the first version of `CreatePen`, if this value is 0, the width in device units is always 1 pixel, regardless of the mapping mode.
180+
- For the first version of `CreatePen`, a value of 0 will be treated similarly to a value of 1, except that the width will not be affected by scale-transform operations that are in effect for the Graphics object that the pen is used for, resulting in the width to be always 1 pixel..
181181

182182
- For the second version of `CreatePen`, if *`nPenStyle`* is `PS_GEOMETRIC`, the width is given in logical units. If *`nPenStyle`* is `PS_COSMETIC`, the width must be set to 1.
183183

0 commit comments

Comments
 (0)