<!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 ">&gt;To  : delphi@ns3.123.co.nz</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;CC  : </span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;From: John Bird, johnkbird@paradise.net.nz</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;Content Type: text/plain</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;Attached: </span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;This raises a related question.....</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;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 ">&gt;mainly ask someone who knows, or Google.</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;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 ">&gt;in the dark if I had to...</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;Any good reference material?</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;John</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;-----Original Message-----</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;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 ">&gt;Behalf Of Robert martin</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;Sent: Wednesday, 6 September 2006 1:24 p.m.</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;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 ">&gt;Subject: Re: [DUG] Component creation</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;Hi</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;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 ">&gt;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 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;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 ">&gt;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 ">&gt;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 ">&gt;it working well :)</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;Rob Martin</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;Software Engineer</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;phone +64 03 377 0495</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;fax   +64 03 377 0496</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;web www.chreos.com</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;Wild Software Ltd</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;Karl @ Work wrote:</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt; 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 ">&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt; 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 ">&gt;&gt; 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 ">&gt;&gt; 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 ">&gt;&gt; anyone enlighten me as to the difference?</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt; Cheers,</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt; Carl</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;   </span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; -----Original Message-----</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; From: delphi-bounces@ns3.123.co.nz </span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; [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 ">&gt;&gt;&gt; Sent: Tuesday, September 05, 2006 7:42 PM</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; To: NZ Borland Developers Group - Delphi List</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; Subject: Re: [DUG] Component creation</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; Hi all</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; I have this beaten now  !!!!</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; The required message is CM_CANCELMODE ....</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; procedure   CMCancelMode(var Message: TCMCancelMode); message</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; CM_CANCELMODE;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; 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 ">&gt;&gt;&gt; components we use and putting breakpoints in)  ;-)</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; 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 ">&gt;&gt;&gt; component when expanded and I needed to better provide communication </span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; 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 ">&gt;&gt;&gt; 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 ">&gt;&gt;&gt; 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 ">&gt;&gt;&gt; either component. If not it closes the 'component'.</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; CM_CANCELMODE and its friend WM_CANCELMODE are really strangely </span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; described my MS and others as 'providing special functionality in </span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; 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 ">&gt;&gt;&gt; when a non focusable control or window is selected.</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; 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 ">&gt;&gt;&gt; big thanks to all who have contributed.</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; Rob Martin</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; Software Engineer</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; phone +64 03 377 0495</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; fax   +64 03 377 0496</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; web www.chreos.com</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt; Wild Software Ltd</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;&gt;     </span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt; _______________________________________________</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt; Delphi mailing list</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt; 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 ">&gt;&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;&gt;   </span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;_______________________________________________</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;Delphi mailing list</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;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 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;__________ NOD32 1.1461 (20060329) Information __________</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;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 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;_______________________________________________</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;Delphi mailing list</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;Delphi@ns3.123.co.nz</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;http://ns3.123.co.nz/mailman/listinfo/delphi</span></span>
    <p>
      <span style=
      "font-family:MS Sans Serif "><span style=
      "color:#008000 ">&gt;</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>