Thread: Dialog box with full screen app.

  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    450

    Dialog box with full screen app.

    I am trying to use a dialog box with a full screen window by hiding the full screen window when the dialog box appears then showing afterward.

    When I exit from the dialog and show the window it appears full screen again but hangs or at least doesn't seem to accept any key controls (I have esc for exit and the back space key to show the dialog).

    Can anyone one give suggestions on how to implement this correctly?

  2. #2
    Master of the Universe! velius's Avatar
    Join Date
    Sep 2003
    Posts
    219
    It would seem that the main window did not recieve the focus correctly and you may want to call SetFocus() to force the focus to be on the main window. The other possiblity is that the dialog box is still alive and it is a modal dialog which would require DoModal() to return IDOK or IDCANCEL to continue.
    While you're breakin' down my back n'
    I been rackin' out my brain
    It don't matter how we make it
    'Cause it always ends the same
    You can push it for more mileage
    But your flaps r' wearin' thin
    And I could sleep on it 'til mornin'
    But this nightmare never ends
    Don't forget to call my lawyers
    With ridiculous demands
    An you can take the pity so far
    But it's more than I can stand
    'Cause this couchtrip's gettin' older
    Tell me how long has it been
    'Cause 5 years is forever
    An you haven't grown up yet
    -- You Could Be Mine - Guns N' Roses

  3. #3
    Registered User
    Join Date
    Jul 2003
    Posts
    450
    I thought it was the focus problem, but I tried SetFocus w/o luck.
    As far as I can tell the dialog box is not modal. I looked at the rc script and nowhere does it say modal. I was tempted to try domodal anyhow but am not sure how to use it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Display text in a Dialog Box
    By Dark_Phoenix in forum Windows Programming
    Replies: 9
    Last Post: 01-02-2009, 06:30 AM
  2. A problem with a modal dialog box
    By Hussain Hani in forum Windows Programming
    Replies: 2
    Last Post: 08-12-2008, 10:30 AM
  3. Dialog box height/width differs in winXP
    By LuckY in forum Windows Programming
    Replies: 7
    Last Post: 05-04-2003, 03:13 PM
  4. Dialog Box Resources
    By Mecnels in forum Windows Programming
    Replies: 2
    Last Post: 04-28-2003, 05:57 AM
  5. Resize Dialog Box via Code :: MFC
    By kuphryn in forum Windows Programming
    Replies: 2
    Last Post: 10-27-2002, 11:00 PM