My dialog in the auxiliary thread shows a progress bar. That progress bar is updated (stepped) when it receives a certain registered thread message from the main thread. There isn't any sharing of MFC objects across the threads. I thought this was ok to do. The only other UI action the aux thread does is that it has a button which can be pressed, to cause it to hide itself. It doesn't ever perform any actions (UI or otherwise) on the main thread. -Jean
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of prosen > Sent: Wednesday, October 06, 2004 11:32 AM > To: [EMAIL PROTECTED] > Subject: RE: [msvc] CFileDialog > > > > This is happening on WinNT. > > The modal dialog is showing up below Visual Studio windows, > > and below the modeless dialog window for a different thread. > > Different thread? I'm just shooting in the dark here, but are > you doing UI > in more than one thread? I don't think that is recommended, > but I don't know > all the ramifications. What we do is have the other threads > just update > internal data, and have the dialog that "appears" to be in > the other thread > actually run in the main thread and have a timer that updates itself > regularly. The timer doesn't have to run very often, just 5 > times a second > or so to appear responsive. > > > > _______________________________________________ > msvc mailing list > [EMAIL PROTECTED] > See > http://beginthread.com/mailman/listinfo/msvc_beginthread.com > for subscription changes, and list archive. > _______________________________________________ msvc mailing list [EMAIL PROTECTED] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
