Minimum size of Dialog

How do I set the minimum size of dialog,in a dialog based app.
Thanks
sanjaypote060401Asked:
Who is Participating?
 
vbk_bgmConnect With a Mentor Commented:
Handle the WM_GETMINMAXINFO message.

void CMyDlg::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
      {
          lpMMI->ptMinTrackSize.x = //min width//;
          lpMMI->ptMinTrackSize.y = //min height//;
       }
0
 
sanjaypote060401Author Commented:
please le me know.
sanjaypote@yahoo.com
0
 
NedelescuCommented:
Very simple:with the function
ShowWindow(SW_MINIMIZE);
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
sanjaypote060401Author Commented:
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
 
NedelescuCommented:
Go to Dialog editor to dialog properties and turn off the Title bar check .
0
 
vbk_bgmCommented:
Hi sanjaypote
  Did you try what I have said in the comment?
0
 
sanjaypote060401Author Commented:
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
 
sanjaypote060401Author Commented:
Thanks a lots, It worked
Sanjay
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.