CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2004
    Location
    Bangalore,karnataka,India
    Posts
    13

    Arrow Full screen dialog window

    how to display a dialog based window on full screen?

  2. #2
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354
    Do you just need maximize it or do you want it to NOT show the caption bar etc. ?

  3. #3
    Join Date
    Mar 2004
    Location
    Bangalore,karnataka,India
    Posts
    13

    full screen

    title bar, task bar etc also should be removed

  4. #4
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917
    You would have to calculate rectangle of the full dialog assuming that client rectangle is equal to a screen size and move dialog slightly off the screen. Upper left corner will have negative coordinates.

    Also handle WM_GETMINMAXINFO setting ptMaxSize ptMaxTrackSize members of the MINMAXINFO structure to size larger than screen size.

    You do not have to remove anything.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  5. #5
    Join Date
    Jul 2001
    Posts
    703
    Is that OK that you make the Title Bar property as FALSE during the design time and in OnInitDialog () you can make,

    ShowWindow(SW_MAXIMIZE);

    Or do you want remove the title bart etc in runtime??
    "Dont Forget to rate if it helped"

  6. #6
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917
    ShowWindow(SW_MAXIMIZE) will show window maximized and that does not fill the whole screen. Also this would require removing title bar, status and toolbar.
    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

  7. #7
    Join Date
    Jun 2004
    Posts
    37
    Hi,

    Hope this link would help,

    http://www.codeproject.com/dialog/dlgboxtricks.asp

    bugfighter

  8. #8
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354
    You have to do as JohnCz says. Additionally, you may want to add a button to come out of full screen mode to the previous size.

    Also, it may be tricky. But what should happen when user hits ESC in full screen mode ? Do you need to handle that specially to come out of full screen mode ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured