The UpdateWindow call is irrelavent. If the window is already up then
do anything at all.
AliR.
"AliR (VC++ MVP)" <AliR@online.nospam> wrote in message
news:6iHyi.1328$vU4.1010@nlpi068.nbdc.sbc.com...
Why painting code? That is a really poor place for something like that.
As I say, I don't like it either. But it occurred to me that calling it
in the painting code ensures that the dialogue comes up after the Window
is painted :-)
Otherwise PostMessage is a very good solution.
I use it a lot for "do this in a moment" things.
Another (better?) solution, now you mention it, is in the response to
the
message, do an UpdateWindow() immediately before launching the dialogue.
Dave
--
David Webber
Author of 'Mozart the Music Processor'
http://www.mozart.co.uk
For discussion/support see
http://www.mozart.co.uk/mzusers/mailinglist.htm