SetWindowText function user32

int SetWindowText(
  1. int hWnd,
  2. Pointer<Utf16> lpString
)

Changes the text of the specified window's title bar (if it has one). If the specified window is a control, the text of the control is changed. However, SetWindowText cannot change the text of a control in another application.

BOOL SetWindowTextW(
  HWND    hWnd,
  LPCWSTR lpString
);

Implementation

int SetWindowText(int hWnd, Pointer<Utf16> lpString) =>
    _SetWindowText(hWnd, lpString);