What's the best way to list all the controls that may be on a CDialog based form? The only method I've seen so far is EnumChildWindows()
but this involves call backs. Is there no faster way to do this?
Asked
Active
Viewed 304 times
1 Answers
2
Callback will hardly affect the performance. What can affect the performance is your code within the callback. I think you can use EnumChildWindows without any issues.

Gautam Jain
- 6,789
- 10
- 48
- 67
-
Do you reckon that's faster than say GetNextWindow? – snowdude Jul 11 '12 at 15:53
-
Yep, I think this is the quickest way. Using GetTickCount for some very basic time tests on dialogs with 35 items it's not even registering. – snowdude Jul 11 '12 at 16:11