2018-04-22 10:07:02 UTC
I have the following styles (WS_CAPTION, WS_VISIBLE, WS_CLIPSIBLINGS, WS_CLIPCHILDREN, WS_SYSMENU, WS_THICKFRAME, WS_OVERLAPPED, WS_MAXIMIZEBOX, WS_MINIMIZEBOX) applied to my window and I can resize which is expected.
My aim is to remove WS_SYSMENU and disable resizing.
So I then remove WS_THICKFRAME and window resizing is disabled as expected. I then have to also remove WS_SYSMENU as well but window resizing comes back. My final set of styles are (WS_CAPTION, WS_VISIBLE, WS_CLIPSIBLINGS, WS_CLIPCHILDREN, WS_OVERLAPPED, WS_MAXIMIZEBOX, WS_MINIMIZEBOX).
I am a win32 beginner so this inconsistency is confusing me. Is anyone able to explain why? WPF is creating the window so I do not have access to the CreateWindow code.