What does it mean to "enumerate" a child window?

Does "enumeration" mean to use the CreateWindowEx () and fill out all of the members? (name of window class, window style, etc)
I suppose the meaning depends on the context. When talking about windows it means to retrieve a handle(HWND) to each child window/control of a window.
Does "enumeration" mean to use the CreateWindowEx () and fill out all of the members?

No. To enumerate X basically means to list all X one by one.

So if you asked me to enumerate all the colours in the rainbow, my answer would be "red, orange, yellow, green, blue, indigo, violet.

And as ahcfan said, enumerating child windows (in the WinAPI sense) means obtaining a handle for all the child windows one by one.

C++ uses the word enumeration in a related sense, e.g.

enum Color { red, orange, yellow, green, blue, indigo, violet};

(but they're using the noun rather than the verb.)

Andy

From http://dictionary.reference.com/browse/enumerate

enumerate

verb (used with object), enumerated, enumerating.
1. to mention separately as if in counting; name one by one; specify, as in a list: Let me enumerate the many flaws in your hypothesis.
2. to ascertain the number of; count.

Last edited on
Topic archived. No new replies allowed.