Click here to Skip to main content
15,921,840 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I display a status text message in windows? In Console mode I would just utilize COUT at the appropriate location in my program. In Windows it appears to be very complicated. MessageBox won't work, as it is a Modal process.

My program is initiated via a "Hot Folder", and based upon the contents of an associated control file, various tasks are processed. I would like to generate a text message and display it on the screen at the beginning and ending of each step.

When the program is completed, message window is to disappear.

Thanks in advance.
Posted
Comments
xmikexhx 12-Nov-14 17:40pm    
Thanks, I will give it a try. Since all my processes are separate modules called from the main program, I should be able to try it out from both a WinAPI, MFC & Dialog module. Will see how it goes.

1 solution

it's sort of easy, with some caveats

you'll have to create a dialog, using MFC's CDialog or ATL's CDialogImpl<>, on top of a dialog resource - CP Example[^]

The major caveat is that this dialog must be created on your main thread, which probably means you're going to need to run a message pump[^] in that thread too or you'll have paint issues - if (as i'm guessing) you're hooked into the Shell, that only runs STA, which means you have to be careful about threading

can open - worms everywhere :)
 
Share this answer
 
Comments
xmikexhx 12-Nov-14 17:41pm    
Thanks, I will give it a try. Since all my processes are separate modules called from the main program, I should be able to try it out from both a WinAPI, MFC & Dialog module. Will see how it goes.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900