Solved

minimizing a CDialog

Posted on 2004-04-26
4
409 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Perl Awk Need Help 3 116
ORA-01403: no data found 43 101
Change owner from userA to server Local Administrators 7 62
while loop over for loop 7 102
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

776 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