◄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. -♦-