tags:

views:

189

answers:

1

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.

+3  A: 

I think SetWindowLongPtr should do that. Note that you need to call SetWindowPos afterwards if you changed the border style, as pointed out in the remarks.

Joey
ahhh I wish i read the remarks! thanks
vanja.
Use SetWindowLongPtr
Anders