It works correctly, but the process of painting is not very quickly becau=
uses a lot of mathematical functions. I am using a Pentium III (1 Ghz) an=
the problem is not the computer. I would like to fix the image to the win=
because the graphical doesn't depends of a time, it is static.That is to
say, it redraw all the graphical every time that OS sends a WM_PAINT mess=
to the window.
There is another way to do it ?
Excuses for my english if there are some mistake...
Guillem Cunillera i Wefers
>At 19:36 2002-02-20 +0100, Guillem Cunillera Wefers wrote:
>>Hi, I'm doing a graphical inside a window, but when I move the window o=
>>the borders or when I put another window over the first, the image is
>>I attach the module and I am sure that there is an easy solution.
>I gather you are painting on the DC of your Window object. Assuming that=
>the problem is this: if you take on the responsibility to paint the Wind=
>yourself, you need to actually do that at certain points in time. When t=
>OS regognizes that that something needs to be repainted it sends a WM_PA=
>message to the window.
>The only control in Win32::GUI that has a Paint event is the Graphic (we=
>and InteractiveGraphic or whatever it's called). So add a
>Win32::GUI::Graphic control and paint on that in the yourControlName_Pai=
>sub. Windows will take care of _when_ to paint it, and you can force it =
>paint if you use the InvalidateRect() method on the control.
>-------- ------ ---- --- -- -- -- - - - - -
>Johan Lindstr=F6m Sourcerer @ Boss Casinos johanl@...
>Latest bookmark: "Record Labels' Answer to Napster Still Has A..."
>Perl-Win32-GUI-Users mailing list
Get latest updates about Open Source Projects, Conferences and News.