<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=312032806-01102008><FONT face=Arial color=#0000ff size=2>Hi
Jeremy,</FONT></SPAN></DIV>
<DIV><SPAN class=312032806-01102008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=312032806-01102008><FONT face=Arial color=#0000ff size=2>If you
got the window's handle, you can use the Windows API <FONT size=3><FONT
face="Times New Roman"><?XML:NAMESPACE PREFIX = MSHelp NS =
"http://msdn.microsoft.com/mshelp" /><MSHelp:link tabIndex=0
xmlns:MSHelp="http://msdn.microsoft.com/mshelp"
keywords="_win32_EnumChildWindows_cpp"><U>EnumChildWindows</U></MSHelp:link><FONT
color=#000000> <FONT face=Arial color=#0000ff size=2>to enumerate all
child windows.</FONT></FONT></FONT></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=312032806-01102008></SPAN><FONT face=Tahoma><FONT face=Arial
color=#0000ff size=2></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><SPAN class=312032806-01102008><FONT face=Arial
color=#0000ff size=2>Look at Windows API help file, you should be able to figure
out how to use the API.</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Tahoma><SPAN class=312032806-01102008><FONT face=Arial
color=#0000ff size=2></FONT></SPAN></FONT> </DIV>
<DIV><FONT face=Tahoma><SPAN class=312032806-01102008><FONT face=Arial
color=#0000ff size=2>Edward</FONT></SPAN></DIV>
<DIV><BR></DIV>
<DIV><FONT size=2><SPAN class=312032806-01102008> </SPAN>-----Original
Message-----<BR><B>From:</B> delphi-bounces@delphi.org.nz
[mailto:delphi-bounces@delphi.org.nz]<B>On Behalf Of </B>Jeremy
Coulter<BR><B>Sent:</B> Tuesday, 30 September 2008 11:22<BR><B>To:</B> NZ
Borland Developers Group - Delphi List<BR><B>Subject:</B> [DUG] Number of
controls on a parent control<BR><BR></DIV></FONT></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV dir=ltr>Hi All.....before you all say
"mycontrol.controlcount" I cant do that :-)<BR><BR>What I am doing
is trying to get some text from a control on a control that is on another
application.<BR>So I need to send a windows message to get the control
count.<BR>The reason for this is, the name of the control I am trying to get
hte name of is different every time.<BR><BR>Basically I need to do this
:-<BR><BR>//find the parent window - done<BR>//find the parent control -
done<BR>//loop the controls on the parent control's child controls<BR>//get
the text from the control I want to look at.<BR><BR>I hope what I am trying to
do is res. clear
:-)<BR><BR>Jeremy<BR></DIV></BLOCKQUOTE></BODY></HTML>