|
IOleInPlaceUIWindow::GetBorder
Returns a RECT structure in which the object can put toolbars and similar controls while
active in place.
HRESULT GetBorder(
LPRECT lprectBorder
| //Points to RECT structure
| );
|
|
Parameter
lprectBorder
[out] Points 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
S_OK
The rectangle was successfully returned.
E_NOTOOLSPACE
The object cannot install toolbars in this window object.
E_INVALIDARG
One or more arguments are invalid.
E_OUTOFMEMORY
Out of memory.
E_UNEXPECTED
An unexpected error occurred.
Comments
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 mehtods and functions can be
called from within GerBorder.
See Also
IOleInPlaceUIWindow::RequestBorderSpace, IOleInPlaceUIWindow::SetBorderSpace
PeekMessage, GetMessage in Win32
Related LinksSoftware for Delphi and C++ Builder developers Software for Visual Studio .NET developers Software for Visual Basic 6 developers Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps Win32 Programmer's Reference (win32.hlp) Win32 Multimedia Programmer's Reference (mmedia.hlp) Microsoft Windows Pen API Programmer's Reference (penapi.hlp) Microsoft Windows Sockets 2 Reference (sock2.hlp) Microsoft Windows Telephony API (TAPI) Programmer's Reference (sock2.hlp) Unix Manual Pages
|