🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #3264

Re: Question on method name in TPW

#3264
From: Duncan Murdoch
Date: Wed, 19 Jun 1991 20:10
20 lines
1198 bytes
In article <91170.083555F0O@psuvm.psu.edu> F0O@psuvm.psu.edu writes:
>
>   HI!
>
>   In TPW, in the Windows Programmers Guide, step 6: Automatically re-
>displaying graphics, I notice they use procedures:
>   TMyWindow.WMLButtonDown
>   TMyWindow.MouseMove
>   TMyWindow.Paint
>
>   Why isn't the Paint method called WMPaint?  That's what the actual
>Windows message is called.  I used a WMPaint method in one of my programs

As I read the online docs on the two, Paint is a procedure to paint the
window, while WMPaint is a procedure to service the WMPaint message.  The
distinction is that WMPaint calls BeginView, Paint, then EndView to 
communicate with the scrollers.

Duncan Murdoch
dmurdoch@watstat.waterloo.edu
Technical Details
Message-ID: <1991Jun19.201012.29349@maytag.waterloo.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!maytag!watstat.waterloo.edu!dmurdoch
References: <91170.083555F0O@psuvm.psu.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer,comp.lang.pascal
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!maytag!watstat.waterloo.edu!dmurdoch
From: dmurdoch@watstat.waterloo.edu (Duncan Murdoch)
Subject: Re: Question on method name in TPW
Message-ID: <1991Jun19.201012.29349@maytag.waterloo.edu>
Sender: news@maytag.waterloo.edu (News Owner)
Organization: University of Waterloo
References: <91170.083555F0O@psuvm.psu.edu>
Date: Wed, 19 Jun 1991 20:10:12 GMT
Lines: 20