IOleInPlaceUIWindow::GetBorder method (oleidl.h)
Retrieves the outer rectangle for toolbars and controls while the object is active in place.
HRESULT GetBorder(
[out] LPRECT lprectBorder
);
[out] lprectBorder
A pointer to a RECT structure where the outer rectangle is to be returned. The structure's coordinates are relative to the window being represented by the interface.
This method returns S_OK on success. Other possible return values include the following.
Return code | Description |
---|---|
|
The object cannot install toolbars in this window object. |
|
Insufficient memory available for this operation. |
|
An unexpected error has occurred. |
If the object is to install these tools, it should negotiate space for the tools within this rectangle using IOleInPlaceUIWindow::RequestBorderSpace and then call IOleInPlaceUIWindow::SetBorderSpace to get this space allocated.
Note While executing IOleInPlaceUIWindow::GetBorder, do not make calls to the PeekMessage or GetMessage functions, or a dialog box. Doing so may cause the system to deadlock. There are further restrictions on which OLE interface methods and functions can be called from within GetBorder.
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | oleidl.h |