This function draws a rectangle in the style used to indicate that the rectangle has the focus.
Parameters
Name | Explanation |
---|---|
hDC | The device context |
PrintRect | Structure containing the coordinates of points for the area bounding the arc |
DrawInfo | Structure whose members set the drawing information |
UnitMode | Sets the units for the PrintRect member variables (0: units in pixel; 1: units in 0.1mm) |
Return Value
Returns True (nonzero) if successful. Returns False (0) if unsuccessful.
Explanation
The IKDrawFocusRect function draws a rectangle in the style used to indicate that the rectangle has the focus.
Because IKDrawFocusRect uses XOR function to draw the rectangle, calling it a second time with the same rectangle removes the rectangle from the screen.
This function draws a rectangle that cannot be scrolled. To scroll an area containing a rectangle drawn by this function, call IKDrawFocusRect to remove the rectangle from the screen, scroll the area, and then call IKDrawFocusRect again to draw the rectangle in the new position.
To draw the rectangle, the BrushStyle and BrushColor members of DrawInfo must be set.
If the UnitMode parameter is 0 then PrintRect member variables are in pixel units.
If the UnitMode parameter is 1 then PrintRect member variables are in 0.1mm units.