Solved

Minimum size of Dialog

Posted on 2001-07-09
8
458 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
  • 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 25 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
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

821 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