🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

UpdateLayeredWindow API

#12486
From: nicolasr
Date: Tue, 09 Dec 2003 00:38
25 lines
1763 bytes
Hi,

I want to experiment with the UpdateLayeredWindow API function.
I have read several MSDN articles and many newsgroup posts on
this topic but none of them explains how to make a regular GUI
app work with UpdateLayeredWindow().

I currently don't care much about alpha blending or transparency,
I just want to understand how to map the standard painting to
the UpdateLayeredWindow() mechanism.

If I understand correctly I should call UpdateLayeredWindow()
whenever some visual aspect of my main window changes.
This would include such basic things as a button is pressed,
correct?
The problem is: where do I react to those changes? Would it
be possible to intercept the WM_PAINT mechanism myself, let
the entire form, including all child controls, render into a buffer
bitmap and than call UpdateLayeredWindow()?

(At least this seems to be what SetLayeredWindowAttributes()
is resulting in?)

thanks for any idea,
Nick
Technical Details
Message-ID: <3fd5198f@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,6f6df602111fe7f8,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-08 16:39:27 PST
From: "nicolasr" <nicolasrNOSPAMATSIGNgmx.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: UpdateLayeredWindow API
Date: Tue, 9 Dec 2003 01:38:34 +0100
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 80.133.173.112
Message-ID: <3fd5198f@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1070930319 80.133.173.112 (8 Dec 2003 16:38:39 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail