Solved

Minimum size of Dialog

Posted on 2001-07-09
8
437 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
Comment Utility
please le me know.
sanjaypote@yahoo.com
0
 

Expert Comment

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

Accepted Solution

by:
vbk_bgm earned 25 total points
Comment Utility
Handle the WM_GETMINMAXINFO message.

void CMyDlg::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
      {
          lpMMI->ptMinTrackSize.x = //min width//;
          lpMMI->ptMinTrackSize.y = //min height//;
       }
0
 

Author Comment

by:sanjaypote060401
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Expert Comment

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

Expert Comment

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

Author Comment

by:sanjaypote060401
Comment Utility
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
Comment Utility
Thanks a lots, It worked
Sanjay
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Show shut-down message as Windows 8 shuts down. 9 74
Replacement selected text 2 47
sum28 challenge 31 95
NotAlone Challenge 20 70
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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 …
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.
This video discusses moving either the default database or any database to a new volume.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now