Share via


IMessengerWindow::Width Property

Deprecated. Sets or retrieves the horizontal dimension of a Messenger window, in pixels.

Syntax

HRESULT IMessengerWindow::get_Width(LONG *plWidth);
HRESULT IMessengerWindow::put_Width(LONG lWidth);

Parameters

  • plWidth
    Pointer to a variable of type LONG that receives the width of the Messenger window in pixels.
  • lWidth
    LONG that specifies the width of the Messenger window in pixels.

Return Value

Returns one of the following values: 

S_OK Success.
RPC_X_NULL_REF_POINTER plWidth is a NULL pointer.
E_INVALIDARG Attempted to set window to zero or negative width.
E_FAIL Could not get window handle.
E_NOTIMPL Cannot be accessed through scripting.

Remarks

If the Messenger window is closed (only available from the taskbar), not responding, or if the HWND could not be found, this method will fail.

Note  This property is not available for scripting languages.

Important  IMessengerWindow::Width is no longer available in Windows Vista. See Windows Messenger for more information.