I have an SDI application in which I am pressing a button on the toolbar and lengthy calculations are performed in the CDocument derived class.
What I would like to happen is that once the button is pressed a progress control appears and displays the progress of the calculations.
My idea is to set up some of thread which creates the progress control and in some way the document notifies the thread of the progess.
I'm not too familiar with threads so need quite a bit of help to set this up. Can anybody give me the steps on how to do this?