Specifies the focus rectangle of an element behavior.
HRESULT retVal = object.GetFocusRect(pRect);
- pRect [in]
Specifies the rectangle that contains the focus area of the element behavior.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
You can implement the IElementBehaviorFocus interface and the GetFocusRect method to enable the element behavior to supply its own focus rectangle.
The coordinates are treated as relative to the upper-left corner of the element.