Click to See Complete Forum and Search --> : How to create more tasks in windows?


Profesor
May 10th, 1999, 09:03 AM
I have following problems:

I created modalless dialog and I created a function, which bake up database and resources writes to window (e. g. by m_pArchivDlg->m_StaticTable.SetWindowText(_Table);). In this window I wanna add a button (Cancel), but this button do not have a focus. I cannot click here, because all time is taken by baking up function.

How to code it?

Ashley Antony
May 10th, 1999, 09:35 AM
You can do it in two ways.
1. Show the cancel button dialog in another thread
2. Sprinkle PeekMessage() loops in your back up function.

For Cancel operation 2nd method is more recommended as it will avoid System's overhead for managing another thread. Look into VC++ help for more details.

Ashley.Antony@in.bosch.com
B'lore,
India.