At 04:14 2003-11-24, [EMAIL PROTECTED] wrote:
I managed to solve my own problem with about 3 hours of tinkering and reading
MSDN. Although I still haven't figured out how exactly WM_Paint messages are
being generated. If I comment out the Update and the InvalidateRect method

Paint messages are generated when Windows (the OS) figures that all or part of the window needs to be re-drawn. So you don't have to think about that.

What you do in your _Paint event handler is you draw the entire window. That's it. The first parameter to the event handle is the Win32::GUI::DC object.


Anyways, since there is not alot of documentation nor example code for
Win32::GUI, I'll show my simple code just in case someone else ever
needs to learn how to do this.

The GUI Loft application also paints it's own Design Window if you want to take a look.


/J

-------- ------ ---- --- -- --  --  -    -     -      -         -
Johan Lindström    Sourcerer @ Boss Casinos     [EMAIL PROTECTED]

Latest bookmark: "Oracle Pipeline - Quest Software's Information..."
http://www.quest-pipelines.com/pipelines/dba/index.asp
dmoz: /Computers/Programming/Languages/PL-SQL/ 78


Reply via email to