DrawFocusRect

Version 3.0

Syntax

void DrawFocusRect(hDC,lpRect)

This function draws a rectangle in the style used to indicate focus.

Parameter Type/Description  
hDC HDC Identifies the device context.  
lpRect LPRECT Points to a RECT data structure that specifies the coordinates of the rectangle to be drawn.  

Return Value

None.

Comments

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, call DrawFocusRect to remove the rectangle from the display, scroll the area, and then call DrawFocusRect to draw the rectangle in the new position.