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.
CPen::CreatePenIndirect
CPen                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL CreatePenIndirect( LPLOGPEN lpLogPen );
 
  Parameter   Description
 
  <lpLogPen>  Points to the Windows LOGPEN structure that contains
              information about the pen.
 
  Remarks
 
  Initializes a pen that has the style, width, and color given in the
  structure pointed to by <lpLogPen>.
 
  Pens that have a width greater than 1 pixel should always have either
  the PS_NULL, PS_SOLID, or PS_INSIDEFRAME style.
 
  If a pen has the PS_INSIDEFRAME style and a color that does not match a
  color in the logical color table, the pen is drawn with a dithered
  color. The PS_INSIDEFRAME style is identical to PS_SOLID if the pen
  width is less than or equal to 1.
 
  Return Value
 
  TRUE if the function is successful; otherwise FALSE.
 
  See Also
 
  CPen::CreatePen, CPen::CPen
 
 
                                     -♦-