Xref: utzoo comp.windows.ms.programmer:3183 comp.lang.pascal:7214 Newsgroups: comp.windows.ms.programmer,comp.lang.pascal Path: 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 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