在Windows API中经常会出现关于顶级窗口的描述,如 EnumWindows函数的说明:

Enumerates all top-level windows on the screen by passing the handle to each window, in turn, to an application-defined callback function. EnumWindows continues until the last top-level window is enumerated or the callback function returns FALSE.

那么什么样的窗口才算得上是顶级窗口了?

简而言之,就是没有WM_CHILD属性的窗口都可以称为顶级窗口。