🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #1866

Re: How to be sure a window has been repainted

#1866
From: Ed Mulroy
Date: Mon, 28 May 2007 19:10
16 lines
1736 bytes
You might try first calling InvalidateRect for the window with the RECT 
element set to NULL and the other argument set to repaint the background and 
after that call Repaint.

.  Ed

> Wookie wrote in message
> news:465B192D.18A0FD94@skynet.be...
>
> I am working inside a thread that drives a LCD screen and a camera. I
> have to synchronize the display on the LCD and the camera acquisition. I
> would like to know if there is any window message that is sent when a
> window has been repainted (a sort of WM_ENDPAINT). I do call the Repaint
> method of TWinControl but most of the time, the camera acquires a mix of
> the previous frame and the new one. How can I be sure the LCD has been
> fully repainted ?
Technical Details
Message-ID: <465b2914$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <465B192D.18A0FD94@skynet.be>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,1db88f519055e05b
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ed Mulroy" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <465B192D.18A0FD94@skynet.be>
Subject: Re: How to be sure a window has been repainted
Date: Mon, 28 May 2007 15:10:13 -0400
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 69.141.82.147
Message-ID: <465b2914$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1180379412 69.141.82.147 (28 May 2007 12:10:12 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!newsfeed.kamp.net!newsfeed.kamp.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail