Solved

minimizing a CDialog

Posted on 2004-04-26
4
387 Views
Last Modified: 2013-11-20
I'm trying to minimize a CDialog by doing this:

CTtDlg dlg;
dlg.Create( IDD_TT_DIALOG );
dlg.ModifyStyle( 0, WS_MINIMIZE );

It compiles and runs without error but the dialog box isn't minimized.
What can I do ?
0
Comment
Question by:__Julien__
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
akalmani earned 125 total points
Comment Utility
Replace this dlg.ModifyStyle( 0, WS_MINIMIZE );
with dlg.ShowWindow(SW_MINIMIZE);
0
 
LVL 48

Expert Comment

by:AlexFM
Comment Utility
Try
dlg.ShowWindow( SW_SHOWMINIMIZED  );
0
 
LVL 48

Expert Comment

by:AlexFM
Comment Utility
Sorry, I am late.
0
 
LVL 3

Expert Comment

by:akalmani
Comment Utility
No worries AlexFM there was a typo from myside too...its SW_SHOWMINIMIZED...not SW_MINIMIZE
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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: 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…
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 gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

9 Experts available now in Live!

Get 1:1 Help Now