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



Reply via email to