We create pen GUI object by CreatePen() API. CreatePen(fnPenStyle, nWidth, crColor) takes three arguments.
CreatePen() takes first argument as style of the pen. Below are the basic style definitions of pen object.
- fnPenStyle - pen style
- nWidth - pen width
- crColor - pen color
|PS_SOLID||Pen is solid.
|PS_DASH||Pen is dashed. This style is valid only when the pen width is one or less in device units.
|PS_DOT||Pen is dotted. This style is valid only when the pen width is one or less in device units.
|PS_DASHDOT||Pen has alternating dashes and dots. This style is valid only when the pen width is one or less in device units.
|PS_DASHDOTDOT||Pen has alternating dashes and double dots. This style is valid only when the pen width is one or less in device units.
|PS_NULL||Pen is invisible.
|PS_INSIDEFRAME||Pen is solid. When this pen is used in any graphics device interface (GDI) drawing function that takes a bounding rectangle, the dimensions of the figure are shrunk so that it fits entirely in the bounding rectangle, taking into account the width of the pen. This applies only to geometric pens.
You have viewed 1 page out of 109. Your VC++ learning is 0.00% complete. Login to check your learning progress.
Similar topics related to this section
Programming Windows, Fifth Edition (Developer Reference)
Programming Applications for Microsoft Windows (Microsoft Programming Series)
Programming Windows with MFC, Second Edition
Visual C++ Programming
Programming Microsoft Visual C++, Fifth Edition
| #1 webmaster Mon 28 Apr/2014 09:48:09(GMT) || 0 || 0|
We are pleased to inform you that a forum/blog has been incorporated with www.mybestnotes.co.in. You are welcomed to add your comments, requests, codes, solutions and feedback to it. Please login(if already a member) or signup(for free) to avail to this facility.
Your message goes here: