disable resize
C / C++ / MFC
5
Posts
3
Posters
0
Views
1
Watching
-
Try to read help for function SetWindowPos you have a flag named SWP_NOSIZE /REMUS
-
Handle the WM_GETMINMAXINFO message. This message passes you a struct, and you can just fill in the min size and max size with the same values, so the window will remain the same size. The mouse will still change to the resizing-arrow cursor when you move it over the window border, so to fix that, handle WM_NCHITTEST and if the cursor is over the resizing border, return HTNOWHERE from the message.
-
Try to read help for function SetWindowPos you have a flag named SWP_NOSIZE /REMUS