IAPI::SetWindowText

property SetWindowText.

Displays a text message into the title bar of a window.

 

HRESULT SetWindowText(
  long hWnd,
  BSTR text,
  BOOL *pVal
);

Parameters

hWnd

[in] .   Handle of the target window.

text

[in] .   Text message to display

pVal

[out, retval] The returned value is TRUE or FALSE

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI