Re: How to avoid BLINKING when creating a CDialog at background?
Chris,
If there is no need for the window (since the dialog is supposed to be
invisible), why not just move this functionality into a different place and
do away with the dialog altogether? Could GenerateData() just be moved out
of the dialog into the parent code?
Tom
"Chris" <Chris@discussions.microsoft.com> wrote in message
news:1BAF6A0C-3924-47F9-804B-AE12D1C51738@microsoft.com...
Joe, the GenerateData is a member function of the CMyDlg class so it has
no
effect at the blinking.
After I checked all the process, I come to a conclusion of why it should
Create and Destroy the object several times inside the loop.
It is because this process needs a CWnd object since it call the
UpdateRect
method and some other functions that requires the CWnd object to be
created
first. I have tried to do just a DoModal and call all the necessary
methods
but an error was generated which is the CWnd object NULL error.
Is there any other way to solve this?
Thank you Joe.