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.
CDC::DrawFocusRect
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  void DrawFocusRect( LPRECT lpRect );
 
  Parameter   Description
 
  <lpRect>    Points to a RECT structure or a CRect object that
              specifies the coordinates of the rectangle to be drawn.
 
  Remarks
 
  Draws a rectangle in the style used to indicate focus.
 
  Since this is an XOR function, calling this function a second time with
  the same rectangle removes the rectangle from the display. The rectangle
  drawn by this function cannot be scrolled. To scroll an area containing
  a rectangle drawn by this function, first call DrawFocusRect to remove
  the rectangle from the display, then scroll the area, and then call
  DrawFocusRect again to draw the rectangle in the new position.
 
  See Also
 
  ::DrawFocusRect
 
 
                                     -♦-