🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Overlay on camera display window

#5724
From: Remy Lebeau (TeamB)
Date: Sat, 23 Jul 2005 00:38
24 lines
1849 bytes
"Hans-Jochen Trost" <dont-email@but.post-re.ply> wrote in message
news:rh03e1pm0o0i7t274u6djcbcdne8m01tna@4ax.com...

> I am thinking about a separate window, appropriately sized, with a
> transparent background and the cross hair drawn on it, so sit on top
> of the image display window (which is also the main program window).

Why not just maintain a separate bitmap in memory, copy your images to it
when needed, draw the cross directly onto it whenever you change it, and
then have the main window simply render the current bitmap when needed?
This is known as "double-buffering".

> 2.  If it is, how do I tell it to not display a title bar?

Simply don't give the window the WS_CAPTION style.

> 3.  How do I tell it to have a transparent background?

Give the window the WS_EX_TRANSPARENT style, and also intercept the
WM_ERASEBKGND message to not actually draw any background.


Gambit
Technical Details
Message-ID: <42e1926c$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <rh03e1pm0o0i7t274u6djcbcdne8m01tna@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5bf0f3f06cc6974f
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <rh03e1pm0o0i7t274u6djcbcdne8m01tna@4ax.com>
Subject: Re: Overlay on camera display window
Date: Fri, 22 Jul 2005 17:38:51 -0700
Lines: 26
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <42e1926c$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1122079340 68.69.17.41 (22 Jul 2005 17:42:20 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail