• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 447
  • Last Modified:

minimizing a CDialog

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
__Julien__
Asked:
__Julien__
  • 2
  • 2
1 Solution
 
akalmaniCommented:
Replace this dlg.ModifyStyle( 0, WS_MINIMIZE );
with dlg.ShowWindow(SW_MINIMIZE);
0
 
AlexFMCommented:
Try
dlg.ShowWindow( SW_SHOWMINIMIZED  );
0
 
AlexFMCommented:
Sorry, I am late.
0
 
akalmaniCommented:
No worries AlexFM there was a typo from myside too...its SW_SHOWMINIMIZED...not SW_MINIMIZE
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

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.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now