Article View: borland.public.cppbuilder.nativeapi
Article #2395Sending WM_PAINT parameters
From: poojo hackma
Date: Tue, 27 Feb 2007 19:23
Date: Tue, 27 Feb 2007 19:23
15 lines
1379 bytes
1379 bytes
I've got a thread that needs to send a paint message back to the parent. Right now, I am using: SendMessage(hParent, WM_PAINT, (WPARAM)0, (LPARAM)0); It works, but it does not repaint the entire region. The InvalidateRgn (API?) takes a BOOL bErase parameter that forces the background to erase before painting. How can I modify either WPARAM or LPARAM so that my WM_PAINT message will force my OnPaint event handler to repaint the entire region? Thanks, PJ
Technical Details
Message-ID:
<45e484ea@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,4ab09b6139d6c452,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "poojo hackma" <poojo.com/mail> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Sending WM_PAINT parameters Date: Tue, 27 Feb 2007 13:23:20 -0600 Lines: 17 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 X-Antivirus: avast! (VPS 000718-0, 02/27/2007), Outbound message X-Antivirus-Status: Clean NNTP-Posting-Host: 12.191.89.68 Message-ID: <45e484ea@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172604138 12.191.89.68 (27 Feb 2007 11:22:18 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail