Results 1 to 2 of 2

Thread: Modeless MFC dialog problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Modeless MFC dialog problem

    I have a (some) modeless MFC dialog(s) which is (are) always on top of their parent windows (MDI child forms). If I have two of these dialogs open they 'z-order' between themselves correctly when the focus switches. Is there any way to have them z-order behind their parents...do I have to get into the MDI framework for that?

    Dan

    Outside of a dog, a book is a man's best friend.
    Inside of a dog, it's too dark to read.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    There isn't. The MDI child windows are childs of the MDI client. The MDI client is child of the main frame.
    The modeless dialogs (I assume they are tool boxes or property sheets) are owned by some of the above windows, but they are independent top-level windows (they don't have the WS_CHILD style). Therefore they can't be between the MDI childs and the MDI client. You can put them behind your apps main window, or in front of your apps main window, but not somewhere in-between.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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