MMCN_INITOCX message

The MMCN_INITOCX notification message is sent to snap-ins having an OCX as the result pane. The notification is sent when the custom OCX is initialized for the first time.

Parameters

lpDataObject

Not used.

arg

Not used.

param

The IUnknown to the OCX, the result pane. This is the same IUnknown you would get from IConsole::QueryResultView.

Return value

S_OK

The snap-in successfully handled the notification.

S_FALSE

The snap-in does not handle the notification. MMC then performs a default operation for the notification.

Remarks

When an OCX is created for the first time, and must be initialized, the snap-in is sent an MMCN_INITOCX notification.

Note

If a snap-in implements IComponent2 and uses an OCX for the result pane, then the MMCN_INITOCX notification will not be sent; instead, the snap-in should initialize the OCX during the call to IComponent2::GetResultViewType2.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
Mmc.h

See also

IConsole::QueryResultView