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. Modeless dialog in Console app

Modeless dialog in Console app

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 3 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.
  • J Offline
    J Offline
    Jonathan de Halleux
    wrote on last edited by
    #1

    Anybody has an idea on handling a modeless dialog in a console app ? Jonathan de Halleux.

    R H 3 Replies Last reply
    0
    • J Jonathan de Halleux

      Anybody has an idea on handling a modeless dialog in a console app ? Jonathan de Halleux.

      R Offline
      R Offline
      Rage
      wrote on last edited by
      #2

      As far as i know it is not possible :( ~RaGE();

      1 Reply Last reply
      0
      • J Jonathan de Halleux

        Anybody has an idea on handling a modeless dialog in a console app ? Jonathan de Halleux.

        H Offline
        H Offline
        Hans Ruck
        wrote on last edited by
        #3

        Maybe this article[^] could help... :-O rechi

        1 Reply Last reply
        0
        • J Jonathan de Halleux

          Anybody has an idea on handling a modeless dialog in a console app ? Jonathan de Halleux.

          R Offline
          R Offline
          Rage
          wrote on last edited by
          #4

          Gulp .. did not know about the article ... sorry ...:rolleyes: ~RaGE();

          J 1 Reply Last reply
          0
          • R Rage

            Gulp .. did not know about the article ... sorry ...:rolleyes: ~RaGE();

            J Offline
            J Offline
            Jonathan de Halleux
            wrote on last edited by
            #5

            Yep, I had seen this article. :) The question is : how can I use cin to get text entry and in the background have modeless dialogs ????:confused: Jonathan de Halleux.

            H 1 Reply Last reply
            0
            • J Jonathan de Halleux

              Yep, I had seen this article. :) The question is : how can I use cin to get text entry and in the background have modeless dialogs ????:confused: Jonathan de Halleux.

              H Offline
              H Offline
              Hans Ruck
              wrote on last edited by
              #6

              Create a worker thread in main. When starting the worker, call CreateDialog to create the modeless as in the article. Then write the message loop and catch there all the messages you throw from the dialog. All this stuff in the worker's handler... Then you could synchronize the worker with the main, using the system dedicated objects. Generally, when you call CreateDialog from a thread with NULL as the parent window, the modeless' messages will be droped in that thread's message loop. rechi

              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