Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1777
  • Last Modified:

Full Screen Dialog

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
AmarjitSingh
Asked:
AmarjitSingh
  • 2
  • 2
1 Solution
 
LeschaCommented:
I think "maximised by default" is the same as "full screen".
0
 
AmarjitSinghAuthor Commented:
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
 
akalmaniCommented:
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
 
akalmaniCommented:
I was too fast i meant change SW_MAXIMIZE to SW_NORMAL.
0
 
AmarjitSinghAuthor Commented:
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: 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