Article View: borland.public.cppbuilder.nativeapi
Article #5710Re: Draw WinControls on form
From: Thorsten Kettner
Date: Wed, 20 Jul 2005 14:57
Date: Wed, 20 Jul 2005 14:57
20 lines
2056 bytes
2056 bytes
"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote: >[snip] At design time, when the user clicks on a control, the >IDE sends it a CM_DESIGNHITTEST message. If the control >responds to the message, the click is directed to the control >and processed normally. If the control does not respond, then >the click is processed by the IDE.[snip] Ah, I guess I see. I intercept WM_NCHITTEST, set Message.Result = 0 and do my own processing instead including drag and drop handling. I have just started playing around with it and it seems to work, but I have difficulties to distinguish moves and resizes and clicks, what Windows would do for me if I hadn't intercepted WM_NCHITTEST. It is interesting and I learned a great deal. Thank you. However, I still like my idea of drawing controls to my canvas, so I will also ask in the graphics group for advice and decide for the better technique in the end.
Technical Details
Message-ID:
<42de6658$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42dbd87f$1@newsgroups.borland.com> <42dbe2e2$3@newsgroups.borland.com> <42dcddc7$1@newsgroups.borland.com> <42dd2a41$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,c52395efb5c800b0 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de> Sender: "Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de> Reply-To: "Thorsten Kettner" <ANSWERBYthorsten.kettner@otto.de> Subject: Re: Draw WinControls on form Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 80.85.196.92 References: <42dbd87f$1@newsgroups.borland.com> <42dbe2e2$3@newsgroups.borland.com> <42dcddc7$1@newsgroups.borland.com> <42dd2a41$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <42de6658$1@newsgroups.borland.com> Date: 20 Jul 2005 07:57:28 -0700 X-Trace: newsgroups.borland.com 1121871448 207.105.83.66 (20 Jul 2005 07:57:28 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail