Article View: borland.public.cppbuilder.nativeapi
Article #5633Re: Overlay on camera display window
From: Remy Lebeau (TeamB)
Date: Mon, 25 Jul 2005 20:41
Date: Mon, 25 Jul 2005 20:41
25 lines
1951 bytes
1951 bytes
"Hans-Jochen Trost" <dont-email@but.post-re.ply> wrote in message
news:109ae1d9rasaeki5d0eemagjgcst6h1ts3@4ax.com...
> So this definition:
>
> hwndCross = CreateWindow(szCrosshair, NULL,
> WS_BORDER,
> mainRect.left +
> GetSystemMetrics(SM_CXBORDER) - 1,
> . . .
>
> is the one that does not yield a window without title bar.
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.
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.
Gambit
Technical Details
Message-ID:
<42e54f10$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!newspeer.tds.net!news-out.news.tds.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!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>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> <42e1926c$1@newsgroups.borland.com> <p21ae11d4tkah2bk701b45u5ap8dn0ud4k@4ax.com> <42e51c6b$1@newsgroups.borland.com> <109ae1d9rasaeki5d0eemagjgcst6h1ts3@4ax.com> Subject: Re: Overlay on camera display window Date: Mon, 25 Jul 2005 13:41:12 -0700 Lines: 27 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: <42e54f10$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1122324240 68.69.17.41 (25 Jul 2005 13:44:00 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!newspeer.tds.net!news-out.news.tds.net!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail