Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Minimum size of Dialog

Posted on 2001-07-09
8
Medium Priority
?
491 Views
Last Modified: 2013-11-20
How do I set the minimum size of dialog,in a dialog based app.
Thanks
0
Comment
Question by:sanjaypote060401
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
8 Comments
 

Author Comment

by:sanjaypote060401
ID: 6267809
please le me know.
sanjaypote@yahoo.com
0
 

Expert Comment

by:Nedelescu
ID: 6267972
Very simple:with the function
ShowWindow(SW_MINIMIZE);
0
 
LVL 2

Accepted Solution

by:
vbk_bgm earned 100 total points
ID: 6268351
Handle the WM_GETMINMAXINFO message.

void CMyDlg::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
      {
          lpMMI->ptMinTrackSize.x = //min width//;
          lpMMI->ptMinTrackSize.y = //min height//;
       }
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:sanjaypote060401
ID: 6271870
the Dialog would contain a minimum width and height,
say width of 100 , As the dialog is resizeable I should
be able to increase the size , but if I try to decrease the
width below 100, then it should maintain a size of 100.
Thanks for the efforts,
Sanjay
0
 

Expert Comment

by:Nedelescu
ID: 6271936
Go to Dialog editor to dialog properties and turn off the Title bar check .
0
 
LVL 2

Expert Comment

by:vbk_bgm
ID: 6277305
Hi sanjaypote
  Did you try what I have said in the comment?
0
 

Author Comment

by:sanjaypote060401
ID: 6279542
Actually I wanted the dialog  to be seen, but it shouldn't
be resized below a specified width and height.
Thank you so much for the efforts.
Regards,
Sanjay
0
 

Author Comment

by:sanjaypote060401
ID: 6279545
Thanks a lots, It worked
Sanjay
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question