Solved

minimizing a CDialog

Posted on 2004-04-26
4
432 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__
[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
  • 2
  • 2
4 Comments
 
LVL 3

Accepted Solution

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

Expert Comment

by:AlexFM
ID: 10918009
Try
dlg.ShowWindow( SW_SHOWMINIMIZED  );
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 10918016
Sorry, I am late.
0
 
LVL 3

Expert Comment

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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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 is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

707 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