|
Boost Users : |
From: Jeff Flinn (jflinn_at_[hidden])
Date: 2002-02-24 16:55:05
----- Original Message -----
From: Steve Burnap <steve_at_[hidden]>
...
> thread. In order to make it obvious that things are happening, the scan
> thread uses SetDlgItemText
> to update display the current file being scanned on the dialog. This all
> works quite well.
>
...
Which does a SendMessage which as you've found does not work quite well. I
assume you are using a worker thread which should communicate with a UI
thread via PostMessage, never SendMessage. Another method would be to have a
time in the dialog that polls a memory location (properly guarded for
read/write access.)
Jeff
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net