Monday 15 April 2013

c++ - EnumChildWindows or FindWindowEx? -


I have the option to use either the API EnumChildWindows or FindWindowEx.

Is API better performance oriented?

Does the know window use the Enhanced World to handle internally on specific windows?

"post-text" itemprop = "text">

It really depends a lot on your scenario.

The FindWindowEx function is used to search for windows with a specific class and there is a special part of the text alternatively in the window. The EnumChildWindows function is only to calculate hair windows.

I think performance should be your last concern. First of all, choose the right API. If you are actually searching for windows of a particular category then use FindWindowEx, otherwise there is no point in implementing a function using the EnumChildWindows Enmbield window, as is the behavior of similar to FindWindowEx.

Now after choosing the right solution, if a professor specifically tells you that the solution is very slow, then you should consider hand-applying a more specific task. not before.


No comments:

Post a Comment