Is there a win32 function to change the style of a window after it has been created? I would like to change the style flags that are specified in CreateWindowEx. Specifically, I would like to convert a standard window to a window with no border and no resize.
Is there a win32 function to change the style of a window after it
Share
I think
SetWindowLongPtrshould do that. Note that you need to callSetWindowPosafterwards if you changed the border style, as pointed out in the remarks.Some styles only take effect during window creation and so can not be set by this call. MSDN normally calls out styles that CAN be set afterwards.