🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Sending WM_PAINT parameters

#2396
From: poojo hackma
Date: Tue, 27 Feb 2007 19:53
11 lines
1351 bytes
My mistake!

I just found that I should *never* use SendMessage (or PostMessage) with 
WM_PAINT.

I found a different way to handle this by using an Invalidate() from within 
my main thread then calling UpdateWindow(hParent) from my other thread.

Sorry for taking up your time.

Don't worry. I'm sure I'll have other stupid questions to ask. 
Technical Details
Message-ID: <45e48beb$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45e484ea@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4ab09b6139d6c452
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "poojo hackma" <poojo.com/mail>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <45e484ea@newsgroups.borland.com>
Subject: Re: Sending WM_PAINT parameters
Date: Tue, 27 Feb 2007 13:53:13 -0600
Lines: 13
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; Response
X-Antivirus: avast! (VPS 000718-0, 02/27/2007), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 12.191.89.68
Message-ID: <45e48beb$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1172605931 12.191.89.68 (27 Feb 2007 11:52:11 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail