Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
class CPen
CGdiObject                                  Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  Description
 
  The CPen class encapsulates a Windows graphical design interface (GDI)
  pen.
 
  Public Members
 
  Construction/Destruction
 
  CPen   Constructs a CPen object.
 
  Initialization
 
  CreatePen           Initializes a pen with the specified style, width,
                        and color.
 
  CreatePenIndirect   Initializes a pen with the style, width, and color
                        given in a LOGPEN structure.
 
  Operations
 
  FromHandle   Returns a pointer to a CPen object when given a Windows
                 HPEN.
 
 
                                     -♦-