Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

minimizing a CDialog

Posted on 2004-04-26
4
Medium Priority
?
444 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 500 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

810 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