Adjusting minimum size of Open File Dialog

  • Thread starter Thread starter MLM450
  • Start date Start date
M

MLM450

I have extended the open file dialog as described in the MSDN article
"Extend the Common Dialog Boxes Using Windows Forms 1.x". I now need to
change the minimum height of the dialog. How do I do it?

I tried intercepting the WM_SIZING message, but it never gets this
message. I tried enforcing height restrictions in response to the
WM_SIZE message, but that message is sent after the sizing has
occurred.

Any ideas?

Thanks,
Mike
 
I tried intercepting the WM_SIZING message, but it never gets this
message. I tried enforcing height restrictions in response to the
WM_SIZE message, but that message is sent after the sizing has
occurred.

Try handling WM_GETMINMAXINFO.


Mattias
 
Thanks for the reply. That would make sense, but I tried it and I do
not seem to be getting that message either.
 
I had to add the WS_THICKFRAME style to my dialog. Now I am getting the
WM_GETMINMAXINFO message.

Thanks!
 
Back
Top