Modeless dialog in Console app
-
Anybody has an idea on handling a modeless dialog in a console app ? Jonathan de Halleux.
-
Anybody has an idea on handling a modeless dialog in a console app ? Jonathan de Halleux.
-
Anybody has an idea on handling a modeless dialog in a console app ? Jonathan de Halleux.
-
Anybody has an idea on handling a modeless dialog in a console app ? 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.
-
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.
Create a worker thread in
main
. When starting the worker, callCreateDialog
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 themain
, using the system dedicated objects. Generally, when you callCreateDialog
from a thread withNULL
as the parent window, the modeless' messages will be droped in that thread's message loop. rechi