The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Ulrike (3) [Avatar] Offline
The standard CWinFormsDialog derived dialog comes with a modal frame. But in my app a resizable dialog would be a much better solution.
So I called ModifyStyle in OnInitDialog of my CWinFormsDialog derived class.
But when I call ModifyStyle(DS_MODALFRAME, WS_MAXIMIZEBOX | WS_CAPTION | WS_THICKFRAME) I get a dialog with a maximize box in the system menu and the ability to maximize the whole dialog but there is no chance to resize the dialog using the mouse. The mouse cursor turns into a double-headed arrow when pointing at the frame, but I can't actually resize the window.
When I call ModifyStyle(WS_SYSMENU | DS_MODALFRAME, WS_MAXIMIZEBOX | WS_CAPTION | WS_THICKFRAME) which means to remove the system menu I can resize the dialog using the mouse but of course I don't have a system menu anymore. What do I have to do to get both - a working resizable frame and a system menu with a maximize box?
Every suggestions, hints and tricks are welcome.