IOleInPlaceSiteEx::OnInPlaceActivateEx method (ocidl.h)
Called by the embedded object to determine whether it needs to redraw itself upon activation.
Syntax
HRESULT OnInPlaceActivateEx(
[out] BOOL *pfNoRedraw,
[in] DWORD dwFlags
);
Parameters
[out] pfNoRedraw
A pointer to a variable that receives the current redraw status. The status is TRUE if the object need not redraw itself upon activation and FALSE otherwise. Windowless objects usually do not need the value returned by this parameter and may pass a NULL pointer to save the container the burden of computing this value.
[in] dwFlags
Indicates whether the object is activated as a windowless object. This parameter takes values from the ACTIVATEFLAGS enumeration. See IOleInPlaceSiteWindowless for more information on windowless objects.
Return value
This method returns S_OK if the container allows the in-place activation. Other possible return values include the following.
Return code | Description |
---|---|
|
An unexpected error has occurred. |
Remarks
This method replaces IOleInPlaceSite::OnInPlaceActivate. If the older method is used, the object must always redraw itself on activation.
Windowless objects are required to use this method instead of IOleInPlaceSite::OnInPlaceActivate to notify the container of whether they are activating windowless or not.
Notes to Implementers
The container should carefully check the invalidation status of the object, its z-order, clipping and any other relevant parameters to determine the appropriate value to return in pfNoRedraw.A container can cache the value of the ACTIVATEFLAGS enumeration instead of calling the GetWindow method in the IOleInPlaceObjectWindowless interface repeatedly.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | ocidl.h |