Groups | Search | Server Info | Login | Register


Groups > comp.os.ms-windows.programmer.misc > #10

Re: Finding the inner controls, when having handle of window.

From Uwe Kotyczka <uwe.kotyczka@web.de>
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 2012-05-21 00:50 -0700
Organization http://groups.google.com
Message-ID <fe24fc4f-d2d7-43a2-a5f5-d733cf0d33ff@b1g2000vbb.googlegroups.com> (permalink)
References <jpckt9$qpl$1@dont-email.me>

Cross-posted to 3 groups.

Show all headers | View raw


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

Back to comp.os.ms-windows.programmer.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Finding the inner controls, when having handle of window. "Mr. X." <nospam.mrx@gmail.com> - 2012-05-21 08:47 +0300
  Re: Finding the inner controls, when having handle of window. "Mr. X." <nospam.mrx@gmail.com> - 2012-05-21 08:53 +0300
    Re: Finding the inner controls, when having handle of window. Karl E. Peterson <karl@exmvps.org> - 2012-05-21 12:45 -0700
  Re: Finding the inner controls, when having handle of window. Uwe Kotyczka <uwe.kotyczka@web.de> - 2012-05-21 00:50 -0700
    Re: Finding the inner controls, when having handle of window. "Mr. X." <nospam.mrx@gmail.com> - 2012-05-21 17:36 +0300
      Re: Finding the inner controls, when having handle of window. Uwe Kotyczka <uwe.kotyczka@web.de> - 2012-05-21 07:41 -0700

csiph-web