Adjusting minimum size of Open File Dialog

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
 
M

Mattias Sjögren

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
 
M

MLM450

Thanks for the reply. That would make sense, but I tried it and I do
not seem to be getting that message either.
 
M

MLM450

I had to add the WS_THICKFRAME style to my dialog. Now I am getting the
WM_GETMINMAXINFO message.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top