You were really, really close. You picked unrelated style, controlling maximize operation. Resizing by the border is controlled by another bit,
WS_SIZEBOX
, same as
WS_THICKFRAME
. You have to clear this bit. Please see:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms632600%28v=vs.85%29.aspx[
^].
Likewise, you could take care about removing of minimize box and some other things. Please look by yourself.
—SA