Object Status Macros

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Object Status Macros.

This macro sets flags belonging to ActiveX controls.

DECLARE_OLEMISC_STATUS Used in ATL ActiveX controls to set the OLEMISC flags.

DECLARE_OLEMISC_STATUS

Used in ATL ActiveX controls to set the OLEMISC flags.

DECLARE_OLEMISC_STATUS(Â
    miscstatus Â)

Parameters

miscstatus
All applicable OLEMISC flags.

Remarks

This macro is used to set the OLEMISC flags for an ActiveX control. Refer to IOleObject::GetMiscStatus for more details.

Example

DECLARE_OLEMISC_STATUS(OLEMISC_RECOMPOSEONRESIZE |
   OLEMISC_CANTLINKINSIDE |
   OLEMISC_INSIDEOUT |
   OLEMISC_ACTIVATEWHENVISIBLE |
   OLEMISC_SETCLIENTSITEFIRST
)

See Also

Macros