to change the width of the window, but it doesn't work, the window still gets created with the width that I specified in CreateWindowEx().
Can you change the window size in WM_NCCREATE by changing the values of the CREATESTRUCT before the window is displayed?