void DrawFocusRect(hdc, lprc) | |||||
HDC hdc; | /* handle of device context | */ | |||
const RECT FAR* lprc; | /* address of structure with rectangle | */ |
The DrawFocusRect function draws a rectangle in the style used to indicate that the rectangle has the focus.
hdc
Identifies the device context.
lprc
Points to a RECT structure that contains the logical coordinates of the rectangle. The RECT structure has the following form:
typedef struct tagRECT { /* rc */
int left;
int top;
int right;
int bottom;
} RECT;
For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.
This function does not return a value.
Because this is an XOR function, calling it a second time and specifying the same rectangle removes the rectangle from the screen.
The rectangle this function draws cannot be scrolled. To scroll an area containing a rectangle drawn by this function, call DrawFocusRect to remove the rectangle from the screen, scroll the area, and then call DrawFocusRect to draw the rectangle in the new position.