Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!postnews.google.com!b1g2000vbb.googlegroups.com!not-for-mail From: Uwe Kotyczka Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.win32,microsoft.public.vb.winapi Subject: Re: Finding the inner controls, when having handle of window. Date: Mon, 21 May 2012 00:50:56 -0700 (PDT) Organization: http://groups.google.com Lines: 11 Message-ID: References: NNTP-Posting-Host: 82.119.187.226 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1337586735 13832 127.0.0.1 (21 May 2012 07:52:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 21 May 2012 07:52:15 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b1g2000vbb.googlegroups.com; posting-host=82.119.187.226; posting-account=6c15jgoAAADeLZVJIHA__d3T0y_Ki_jZ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0E; .NET4.0C),gzip(gfe) X-Received-Bytes: 1627 Xref: csiph.com comp.os.ms-windows.programmer.misc:10 comp.os.ms-windows.programmer.win32:1486 Say hWnd is the handle to your dialog box, then you can iterate through the (direct) children (controls) by: for (HWND hChild = GetWindow(hWnd, GW_CHILD); hChild != NULL; hChild = GetNextWindow(hChild, GW_HWNDNEXT)) { // do something with hChild } HTH