Article View: borland.public.cppbuilder.nativeapi
Article #5634Re: Overlay on camera display window
From: Hans-Jochen Trost
Date: Mon, 25 Jul 2005 22:45
Date: Mon, 25 Jul 2005 22:45
34 lines
2336 bytes
2336 bytes
Remy,
[snip]
>> hwndCross = CreateWindow(szCrosshair, NULL,
>> WS_BORDER,
>> mainRect.left +
>> GetSystemMetrics(SM_CXBORDER) - 1,
>> . . .
[snip]
>Try using WS_DLGFRAME instead of WS_BORDER. As per MSDN:
>
> WS_DLGFRAME
> Creates a window that has a border of a style typically used with dialog
>boxes. A window with this style cannot have a title bar.
Tried it, no change. The title bar stays.
>Alternatively, don't use a separate window for the cross in the first place.
>Draw it directly onto the in-memory bitmap like I suggested earlier.
I got that to work this afternoon, so I have a decent solution. I
think I'm not going to worry any more about that title bar. I'm
planning to move to wxWidgets for my windowing and GUI code anyway.
Thanks again.
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:
<s9qae1lnkg5c0uaklr5hl35t7clfoktkms@4ax.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.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<rh03e1pm0o0i7t274u6djcbcdne8m01tna@4ax.com> <42e1926c$1@newsgroups.borland.com> <p21ae11d4tkah2bk701b45u5ap8dn0ud4k@4ax.com> <42e51c6b$1@newsgroups.borland.com> <109ae1d9rasaeki5d0eemagjgcst6h1ts3@4ax.com> <42e54f10$1@newsgroups.borland.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: Hans-Jochen Trost <dont-email@but.post-re.ply> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Overlay on camera display window Date: Mon, 25 Jul 2005 17:45:28 -0500 Organization: MicroFab Technologies, Inc. Reply-To: dont-email@but.post-re.ply Message-ID: <s9qae1lnkg5c0uaklr5hl35t7clfoktkms@4ax.com> References: <rh03e1pm0o0i7t274u6djcbcdne8m01tna@4ax.com> <42e1926c$1@newsgroups.borland.com> <p21ae11d4tkah2bk701b45u5ap8dn0ud4k@4ax.com> <42e51c6b$1@newsgroups.borland.com> <109ae1d9rasaeki5d0eemagjgcst6h1ts3@4ax.com> <42e54f10$1@newsgroups.borland.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 1122331525 24.1.60.14 (25 Jul 2005 15:45:25 -0700) Lines: 34 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.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail