Solved

Full Screen Dialog

Posted on 2004-03-31
5
1,769 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
[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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
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. …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

759 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