471,319 Members | 1,930 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

Adjusting minimum size of Open File Dialog

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

Dec 5 '05 #1
3 3464
>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

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Dec 5 '05 #2
Thanks for the reply. That would make sense, but I tried it and I do
not seem to be getting that message either.

Mattias Sjögren wrote:
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

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Dec 5 '05 #3
I had to add the WS_THICKFRAME style to my dialog. Now I am getting the
WM_GETMINMAXINFO message.

Thanks!

Dec 5 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by brucoder | last post: by
3 posts views Thread by luc h | last post: by
12 posts views Thread by David Sworder | last post: by
4 posts views Thread by John | last post: by
14 posts views Thread by David C. Stone | last post: by
7 posts views Thread by Peter | last post: by
5 posts views Thread by Stefano Tonello | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.