🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Overlay on camera display window

#5723
From: Hans-Jochen Trost
Date: Fri, 22 Jul 2005 23:43
35 lines
2177 bytes
All,

I want to create a static overlay for a window in which I display an
image stream from a camera (SetDIBitsToDevice).  Currently, I redraw a
simpe cross hair after every image display, which works but gives a
flickery result.  I would rather have a statically displayed cross
hair overlaid on the image display.

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).

I am targeting Win 9x and 2k, in an app that is pure Win32 API (no
MFC, OWL or VCL).

This creates a number of questions:

1.  Is a separate window a workable way to create a static cross hair
overlay?

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

3.  How do I tell it to have a transparent background?  (2k/XP offers
"Layered Windows", for which I think I can pull this one off.)

I appreciate any suggestions.

Cheers,               Jochen

hjtrost at microfab dot com


Nil nimium studeo, Caesar, tibi velle placere,
nec scire ut an sis albus an ater homo.
                                          Catullus
Technical Details
Message-ID: <rh03e1pm0o0i7t274u6djcbcdne8m01tna@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.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

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,5bf0f3f06cc6974f,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Hans-Jochen Trost <dont-email@but.post-re.ply>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Overlay on camera display window
Date: Fri, 22 Jul 2005 18:43:26 -0500
Organization: MicroFab Technologies, Inc.
Reply-To: dont-email@but.post-re.ply
Message-ID: <rh03e1pm0o0i7t274u6djcbcdne8m01tna@4ax.com>
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 24.1.60.14
X-Trace: newsgroups.borland.com 1122075805 24.1.60.14 (22 Jul 2005 16:43:25 -0700)
Lines: 35
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.hal-mli.net!feeder1.hal-mli.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