<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>
myOffice Email Message
</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<meta name="date" content="2002-11-01">
<style type="text/css">
</style>
</head>
<body>
<span style=
"color:#FF0000 "><b><span style=
"font-family:MS Sans Serif ">[Reply]</span></b></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#000000 ">HI JOhn,</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#000000 ">You can strat with the Windows SDK Help accessible from the Help Menu.</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#000000 ">Search on "WM_" get's you started.</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#000000 ">cheers</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#000000 ">Gary</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#000000 ">A</span><span style=
"color:#FF0000 "><b>t 13:49 on 6/09/2006 you wrote </b></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>To : delphi@ns3.123.co.nz</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>CC : </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>From: John Bird, johnkbird@paradise.net.nz</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Content Type: text/plain</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Attached: </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>This raises a related question.....</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Where does one get such information on Windows Messages? So far seems</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>mainly ask someone who knows, or Google.</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Fortunately I 've only done a little message handling so far, I would feel</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>in the dark if I had to...</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Any good reference material?</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>John</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>-----Original Message-----</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>From: delphi-bounces@ns3.123.co.nz [mailto:delphi-bounces@ns3.123.co.nz] On</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Behalf Of Robert martin</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Sent: Wednesday, 6 September 2006 1:24 p.m.</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>To: karlreynolds@xtra.co.nz; NZ Borland Developers Group - Delphi List</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Subject: Re: [DUG] Component creation</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Hi</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>I didn't know about WM_CAPTURECHANGED but it read as similar. I used </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>CancelMode simply because that was what was in my example controls.</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>I just did a quick test and it doesn't seem to trigger on the same </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>events (It seemed to only trigger when clicking on my control). Not </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>really thoroughly tested though. I will stick wilt CancelMode as I have </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>it working well :)</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Rob Martin</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Software Engineer</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>phone +64 03 377 0495</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>fax +64 03 377 0496</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>web www.chreos.com</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Wild Software Ltd</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Karl @ Work wrote:</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>> You learn something every day. Guess my hooking code was OTT.</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>> I notice that although some effort has obviously been made to </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>> implement CM_CANCELMODE, its effects look very similar to those of </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>> WM_CAPTURECHANGED (Rob, mightn't that work for you as well?). Can </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>> anyone enlighten me as to the difference?</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>> Cheers,</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>> Carl</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>> </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> -----Original Message-----</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> From: delphi-bounces@ns3.123.co.nz </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> [mailto:delphi-bounces@ns3.123.co.nz]On Behalf Of Robert martin</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> Sent: Tuesday, September 05, 2006 7:42 PM</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> To: NZ Borland Developers Group - Delphi List</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> Subject: Re: [DUG] Component creation</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> Hi all</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> I have this beaten now !!!!</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> The required message is CM_CANCELMODE ....</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> procedure CMCancelMode(var Message: TCMCancelMode); message</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> CM_CANCELMODE;</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> I found this using my expert skills (or looking at some third party </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> components we use and putting breakpoints in) ;-)</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> I had tried this earlier but my component actually creates a child </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> component when expanded and I needed to better provide communication </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> between them. I am not an expert component creator (far from it) but </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> what I have is both components checking for this event and using the </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> ScreenToClient code provided by Todd to ensure the mouse isn't within </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> either component. If not it closes the 'component'.</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> CM_CANCELMODE and its friend WM_CANCELMODE are really strangely </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> described my MS and others as 'providing special functionality in </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> certain circumstances' or some such. But essentially it seems to be </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> when a non focusable control or window is selected.</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> Will test further but it seems this has hit the nail on the head. A </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> big thanks to all who have contributed.</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> Rob Martin</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> Software Engineer</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> phone +64 03 377 0495</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> fax +64 03 377 0496</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> web www.chreos.com</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> Wild Software Ltd</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>>> </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>> _______________________________________________</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>> Delphi mailing list</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>> Delphi@ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>> </span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>_______________________________________________</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Delphi mailing list</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Delphi@ns3.123.co.nz http://ns3.123.co.nz/mailman/listinfo/delphi</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>__________ NOD32 1.1461 (20060329) Information __________</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>This message was checked by NOD32 antivirus system. http://www.eset.com</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>_______________________________________________</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Delphi mailing list</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>Delphi@ns3.123.co.nz</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">>http://ns3.123.co.nz/mailman/listinfo/delphi</span></span>
<p>
<span style=
"font-family:MS Sans Serif "><span style=
"color:#008000 ">></span></span><p>
<font face=arial size = 1 color = Navy><DIV style="WIDTH: 260px; HEIGHT: 50px"><MARQUEE id=marquee1 style="WIDTH: 260px; HEIGHT: 200px" trueSpeed scrollAmount=5 scrollDelay=20 direction=right behavior=slide loop=1 border="2"><hr><table><tr><td><FONT color=black size=4 face = "helvetica,verdana,arial">Gary Benner </FONT></td></tr><tr><td><FONT face="arial, arial, helvetica, sans-serif" color=black size=2>e-Engineer, Lecturer, and Software Developer</FONT></td></tr><br>
<tr><td bgcolor=><FONT face="arial, arial, helvetica, sans-serif" color=#000099 size=2><B><A HREF="http://www.123.co.nz" style="text-decoration:none; color:blue">123 Internet Limited</A></B></FONT></td></tr><tr><td bgcolor=><FONT face="arial, arial, helvetica, sans-serif" color=#000099 size=2><B><A HREF="http://www.waiariki.ac.nz" style="text-decoration:none; color:#993333">Waiariki Institute of Technology</A></B></FONT></td></tr><tr><td bgcolor=><FONT face="arial, arial, helvetica, sans-serif" color=#CECE00 size=2><B><A HREF="http://www.sunshinebags.co.nz" style="text-decoration:none; color:#CECE00">Sunshine Garden Bag Co.</A></B></FONT></td></tr><tr><td bgcolor=><FONT face="arial, arial, helvetica, sans-serif" color=red size=2><B><A HREF="http://www.sommnet.com" style="text-decoration:none; color:red" >Sommnet.com Limited</A></B></FONT></td></tr><tr><td><font face = 22helvetica,verdana,arial" size = 1>Mob: 021 966 992</font></td></tr><tr><td><font face = "helvetica,verdana,arial" size = 1>Email: <A href="mailto:gary@123.co.nz" >gary@123.co.nz</A> </font></td></tr></table></MARQUEE></DIV><br>
<br>
Ref#: 41006<br>
<br>
</body>
</html>