Article View: borland.public.cppbuilder.nativeapi
Article #4838Re: Sending mouse click through application?
From: vERUs
Date: Wed, 16 Nov 2005 10:05
Date: Wed, 16 Nov 2005 10:05
19 lines
1543 bytes
1543 bytes
Thanks, I'll give the first idea a try! "JD" <nospam@nospam.com> wrote in message news:437a4fdd$1@newsgroups.borland.com... > > A couple of ideas: > > Don't use a label. Instead, override the form's WndProc method > to catch WM_PAINT and then use the win32 API DrawText (after > setting the background mode transparent) to draw the text. > > Sublass the label's WndProc method and catch WM_LBUTTONDOWN > and pass it to the form instead. Note that the click point > will be relative to the label. You might also need to do the > same with WM_LBUTTONUP. > > ~ JD >
Technical Details
Message-ID:
<437b044f$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<437a0035@newsgroups.borland.com> <437a4fdd$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,63439b23932d5aae X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "vERUs" <andreas_antonsson@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <437a0035@newsgroups.borland.com> <437a4fdd$1@newsgroups.borland.com> Subject: Re: Sending mouse click through application? Date: Wed, 16 Nov 2005 11:05:46 +0100 Lines: 21 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 62.20.110.155 Message-ID: <437b044f$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1132135503 62.20.110.155 (16 Nov 2005 02:05:03 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail