*VERY* basic MDI question

This is a discussion on *VERY* basic MDI question within the Windows Programming forums, part of the Platform Specific Boards category; I thought I got this in class, but apparently not. My mission, with no choice but to accept it: Create ...

  1. #1
    Registered User
    Join Date
    Dec 2001
    Posts
    4

    *VERY* basic MDI question

    I thought I got this in class, but apparently not.

    My mission, with no choice but to accept it:

    Create a multiple document program with 8 dialogs/new windows to demonstrate all the wonderful coding stuff we've learned this semester.

    I'm having no problem with those, it's getting the menu selection to pop up the window. When I click on menu on the main window, the drop down selections are grayed out.

    So far, I've done it this way: Insert->resource->dialog then clicked new. Create the dialog window, then go to the class wizard, entered the CNameOfIt to create the class. Program comes up just fine, except that I can't get to any of the dialogs because of the menu problem. I'm feeling like quite a bit of a dork here, and I know I'm missing some simple step.

    Thanks for your patience..hopefully this isn't too confusing to answer.

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    Not quite clear. Which menu has the drop downs grayed, the one the child dlg's are added to? ['Window' is default I think]

    Have you created the frame?
    Created the dlg's and then hidden them ready to show when the user selects one?

    In my MDI I created the dlg's on the fly as you need to use CreateMDIWindow() to get them to add to the menu. Then create the ctrl's on them with CreateWindow().
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    Registered User
    Join Date
    Dec 2001
    Posts
    4
    Actually, I figured it out within about five minutes of posting. Seems like the minute you think you've reached the end of your rope, you get another idea.

    I wish I knew my terminology a little better..What I meant was when you run the program, click menu from the toolbar, the drop down list items were grayed out. I knew I was forgetting something simple..I didn't right click on them, go to class wizard, and add in:
    {
    CLibraryfunctions dlg;
    dlg.DoModal();
    }

    It was most likely confusing because it's so darned basic it's unbelievable a person wouldn't know that.

    Thanks for taking time to reply! I'm sure I'll be back with more confusing stuff.

    Deana
    Newest of the newbies.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Basic question about GSL ODE func RK4
    By cosmich in forum Game Programming
    Replies: 1
    Last Post: 05-07-2007, 02:27 AM
  2. Basic C question ---- URGENT
    By x135 in forum Linux Programming
    Replies: 3
    Last Post: 03-25-2006, 10:05 PM
  3. Inserting text into MDI program
    By Rutabega in forum Windows Programming
    Replies: 0
    Last Post: 12-23-2005, 10:25 AM
  4. Visual Basic Question
    By Xeavor in forum Tech Board
    Replies: 5
    Last Post: 12-02-2004, 08:59 AM
  5. A very basic question
    By AshFooYoung in forum C Programming
    Replies: 8
    Last Post: 10-07-2001, 03:37 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21