Export (0) Print
Expand All

IVsBroadcastMessageEvents.OnBroadcastMessage Method

Fires when a message is broadcast to the environment window.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int OnBroadcastMessage (
	[InAttribute] uint msg,
	[InAttribute] IntPtr wParam,
	[InAttribute] IntPtr lParam
)
int OnBroadcastMessage (
	/** @attribute InAttribute() */ UInt32 msg, 
	/** @attribute InAttribute() */ IntPtr wParam, 
	/** @attribute InAttribute() */ IntPtr lParam
)
function OnBroadcastMessage (
	msg : uint, 
	wParam : IntPtr, 
	lParam : IntPtr
) : int

Parameters

msg

[in] Specifies the notification message.

wParam

[in] Word value parameter for the Windows message, as received by the environment.

lParam

[in] Long integer parameter for the Windows message, as received by the environment.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsBroadcastMessageEvents::OnBroadcastMessage(
   [in] UINT msg,
   [in] WPARAM wParam,
   [in] LPARAM lParam
);

Messages that are currently passed include:

  • WM_WININICHANGE

  • WM_DISPLAYCHANGE

  • WM_SYSCOLORCHANGE

  • WM_PALETTECHANGED

  • WM_PALETTEISCHANGING

  • WM_ACTIVATEAPP

Community Additions

ADD
Show:
© 2015 Microsoft