How to stop EnumWindows running infinitely win32

后端 未结 4 1841
囚心锁ツ
囚心锁ツ 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:13

    From the documentation:

    EnumWindows continues until the last top-level window is enumerated or the callback function returns FALSE.

    To continue enumeration, the callback function must return TRUE; to stop enumeration, it must return FALSE.

提交回复
热议问题