Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Toolbar and Dialog Boxes

Toolbar and Dialog Boxes

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kitty5
    wrote on last edited by
    #1

    Right now when I have a dialog box open I can only work in the one box and can't click on anything outside it (i.e. clicking on the toolbar to open another dialog box or getting the about box to come up isn't working...) I want to be able to click on the toolbar, menu, open more than 1 dialog box, etc. I guess I'm looking to make these dialog boxes work like child forms in an MDI MFC App. where no matter how many child windows you have open you can still click on the toolbar, menu, etc. Is that possible? Thanks,

    Kitty5

    Z 1 Reply Last reply
    0
    • K kitty5

      Right now when I have a dialog box open I can only work in the one box and can't click on anything outside it (i.e. clicking on the toolbar to open another dialog box or getting the about box to come up isn't working...) I want to be able to click on the toolbar, menu, open more than 1 dialog box, etc. I guess I'm looking to make these dialog boxes work like child forms in an MDI MFC App. where no matter how many child windows you have open you can still click on the toolbar, menu, etc. Is that possible? Thanks,

      Kitty5

      Z Offline
      Z Offline
      Zac Howland
      wrote on last edited by
      #2

      It sounds like you are treating your dialogs as modal dialogs (that is, you are calling DoModal at some point). To accomplish what you want, you need to follow the non-modal creation method (using CDialog::Create). Check MSDN for more details and information.

      If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac

      K 1 Reply Last reply
      0
      • Z Zac Howland

        It sounds like you are treating your dialogs as modal dialogs (that is, you are calling DoModal at some point). To accomplish what you want, you need to follow the non-modal creation method (using CDialog::Create). Check MSDN for more details and information.

        If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac

        K Offline
        K Offline
        kitty5
        wrote on last edited by
        #3

        Zac Howland wrote:

        It sounds like you are treating your dialogs as modal dialogs (that is, you are calling DoModal at some point).

        Yes, that was exactly what I was doing. Ok Cool. I figured it had something to do with the DoModal function that I was messing up on. Thanks! You ROCK! :-D

        Kitty5

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups