Results 1 to 2 of 2

Thread: MFC multiple dialogues

  1. #1

    Thread Starter
    Fanatic Member sql_lall's Avatar
    Join Date
    Jul 2002
    Location
    Up Above (i.e. AUS)
    Posts
    571

    Talking MFC multiple dialogues

    Hello!
    Sorry for this newbie Q about MFC, but i'm just starting out and Microsoft seem to like making things confusing...

    I am just making a simple app with multiple dialogue windows (kinda like what most simple VB progs look like).
    I'm using MFC for this, so and am making a class for each dialogue (I understood that much)

    However, i can't seem to open one dialogue from another. How is this done?
    i.e. when i click a button in Dialogue1, i would like dialogue2 to open and be the active dialogue....

    thanks
    sql_lall

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    In the button handler declare an instance of the second class and call DoModal (or Show) on it.
    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