It works correctly, but the process of painting is not very quickly because
uses a lot of mathematical functions. I am using a Pentium III (1 Ghz) and
the problem is not the computer. I would like to fix the image to the window
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 message
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 out
>>the borders or when I put another window over the first, the image is
cutted.
>>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 Window
>yourself, you need to actually do that at certain points in time. When the
>OS regognizes that that something needs to be repainted it sends a WM_PAINT
>message to the window.
>
>The only control in Win32::GUI that has a Paint event is the Graphic (well,
>and InteractiveGraphic or whatever it's called). So add a
>Win32::GUI::Graphic control and paint on that in the yourControlName_Paint
>sub. Windows will take care of _when_ to paint it, and you can force it to
>paint if you use the InvalidateRect() method on the control.
>
>
>/J
>
>-------- ------ ---- --- -- --  --  -    -     -      -         -
>Johan Lindström    Sourcerer @ Boss Casinos     [EMAIL PROTECTED]
>
>Latest bookmark: "Record Labels' Answer to Napster Still Has A..."
>http://www.nytimes.com/2002/02/18/technology/18SONG.html
>
>
>
>_______________________________________________
>Perl-Win32-GUI-Users mailing list
>Perl-Win32-GUI-Users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
>


Reply via email to