IOleInPlaceActiveObject::OnDocWindowActivate method (oleidl.h)
Notifies the active in-place object when the container's document window is activated or deactivated.
HRESULT OnDocWindowActivate( [in] BOOL fActivate );
The state of the MDI child document window. If this parameter is TRUE, the window is in the act of activating; if it is FALSE, it is in the act of deactivating.
This method returns S_OK on success.
RemarksIOleInPlaceUIWindow::SetBorderSpace with pborderwidths set to NULL, you can avoid having to renegotiate border space.
While executing IOleInPlaceActiveObject::OnDocWindowActivate, 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 IOleInPlaceActiveObject::OnDocWindowActivate.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|