IOleInPlaceUIWindow::GetBorder  1ERDUH2

Returns a RECT structure in which the object can put toolbars and similar controls while active in place.

HRESULT GetBorder(

    LPRECT lprectBorder

//Pointer to structure

   );

 

 

Parameter

lprectBorder

[out] Pointer to a RECT structure where the outer rectangle is to be returned. The RECT structure s coordinates are relative to the window being represented by the interface.

 

Return Values

This method supports the standard return values E_INVALIDARG, E_OUTOFMEMORY, and E_UNEXPECTED, as well as the following:

S_OK

The rectangle was successfully returned.

E_NOTOOLSPACE

The object cannot install toolbars in this window object.

 

Remarks

Notes to Callers

The IOleInPlaceUIWindow::GetBorder function, when called on a document or frame window object, returns the outer rectangle (relative to the window) where the object can put toolbars or similar controls.

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 Windows 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.

 

See Also

IOleInPlaceUIWindow::RequestBorderSpace, IOleInPlaceUIWindow::SetBorderSpace

PeekMessage0X9XXX@win32.hlp, GetMessageIXKDTP@win32.hlp in Win32