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. Problem with Modeless dialogs

Problem with Modeless dialogs

Scheduled Pinned Locked Moved C / C++ / MFC
help
2 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.
  • S Offline
    S Offline
    Sreenivas003
    wrote on last edited by
    #1

    I have a derived CModeless Class form CDialog class which is used for creating modeless dialogs. I have derived 2 new dialog classes from the CModeless. I have opened the two dialogs since they are modeless. After OnOK of the dialog i must create the dialog again, for both the dialogs. but i am unable to see the dialog when OnOk button until the other dialog is closed. Can any one tell me the solution for the problem.

    sreenivas003@yahoo.co.in

    S 1 Reply Last reply
    0
    • S Sreenivas003

      I have a derived CModeless Class form CDialog class which is used for creating modeless dialogs. I have derived 2 new dialog classes from the CModeless. I have opened the two dialogs since they are modeless. After OnOK of the dialog i must create the dialog again, for both the dialogs. but i am unable to see the dialog when OnOk button until the other dialog is closed. Can any one tell me the solution for the problem.

      sreenivas003@yahoo.co.in

      S Offline
      S Offline
      Sarath C
      wrote on last edited by
      #2

      Why you can't send WM_CLOSE message to the other dialog before recreating it? BTW, why it's necessary to have CDialog->CModelessDialog>CXXXDailog/CYYYDialog?

      -Sarath.

      My blog - Sharing My Thoughts

      Rate the answers and close your posts if it's answered

      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