Solved

Full Screen Dialog

Posted on 2004-03-31
5
1,761 Views
Last Modified: 2008-02-01
My dialog is in completion; its dimensions are of my desire and testing the dialog within VC++ proceeds, and the dialog is displayed according to my specified dimensions.

However, when I build my solution, I find my dialog to be full screen!

Despite my program being dialog-based, and maximised by default, it appears full screen after compiled. Has this anything to do with the fact that I had not made the "Use HTML Dialog" a selection of the Application Type in the MFC AppWizard?
0
Comment
Question by:AmarjitSingh
  • 2
  • 2
5 Comments
 
LVL 1

Expert Comment

by:Lescha
ID: 10731351
I think "maximised by default" is the same as "full screen".
0
 

Author Comment

by:AmarjitSingh
ID: 10733241
Yes you're conclusive, and I've concluded what is the source of the dialog's dilemma, via experimentation. Therefore, I have gained realisation of what the solution is.

Firstly, is there a possibility of reverting to this prompt in my existing project?:-

http://members.lycos.co.uk/kazaaliter2k4/error3.gif

If not, I need to be informed of a method where I can UN-CHECK that box highlighted in red.
0
 
LVL 3

Accepted Solution

by:
akalmani earned 50 total points
ID: 10739759
BOOL CPCDlg::OnInitDialog()
{
  //Usual code goes here....

   //Change this to SW_NORMAL or as per your needs. For more information about
   //ShowWindow refer to MSDN.
   ShowWindow(SW_MAXIMIZE);

   return TRUE;
}

0
 
LVL 3

Expert Comment

by:akalmani
ID: 10739766
I was too fast i meant change SW_MAXIMIZE to SW_NORMAL.
0
 

Author Comment

by:AmarjitSingh
ID: 10741058
Thanks man, you'd think Microsoft could have been courteous as to make this an inclusion of a menu of some sort.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

863 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

22 Experts available now in Live!

Get 1:1 Help Now