How to stop EnumWindows running infinitely win32

后端 未结 4 1813
囚心锁ツ
囚心锁ツ 2021-01-06 19:37

The code worked all along. Somehow I manage to get Visual C++ Express not hit the break point on the final return statement and it appeared to run for ever.

In the e

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-06 20:08

    hmm, i don't get why it would. i ran it and it worked just fine. it displayed all of the windows i have and then stopped. enumWindows will stop when either the enumWindowsProc returns false (you have it coded to always return true) or when it runs out of top-level windows to enumerate. -don

提交回复
热议问题