Question Details

No question body available.

Tags

c winapi

Answers (1)

Accepted Answer Available
Accepted Answer
May 5, 2026 Score: 6 Rep: 1,085 Quality: High Completeness: 70%

In your WndProc handler, you must also call the default processing handler DefWindowProcW upon WMNCCREATE, otherwise Windows won't be able to set the window title.

  SetWindowLongPtr(hwnd, GWLPUSERDATA, (LONG_PTR)cs->lpCreateParams);
+ return DefWindowProcW(hwnd, msg, wParam, lParam);
- return TRUE;

Successfully working window title

For when to use DefWindowProcW, see this question.