Adjusts a specified rectangle if it is entirely or partially covered by overlapping, opaque objects.
HRESULT AdjustRect(
LPRECT prc |
//Rectangle to adjust |
); |
Parameters
Return Values
Remarks
The main use of this method is to adjust the size of the caret. An object willing to create a caret should submit the caret rectangle to its site object by calling this method and using the adjusted rectangle returned from it for the caret. If the caret is entirely hidden, this method will return S_FALSE and the caret should not be shown at all in this case.
In a situation where objects are overlapping this method should return the largest rectangle that is fully visible.
This method can also be used to figure whether a point or a rectangular area is visible or hidden by overlapping objects.