GetActiveWindow与GetForegroundWindow两者有何区别?
许振坪 2007-08-17 11:34:27 来自MSDN:
The active window is either the window that has the current input focus or the window explicitly made active by the SetActiveWindow member function
The foreground window applies only to top-level windows(frame windows or dialog boxes).
网上有人说:
GetActiveWindow() 是你的程序的当前激活的窗口。
GetForegroundWindow() 是整个Windows系统的当前激活的窗口。
我自己仍然有点不明白,当期窗口不就是当前激活的窗口吗?大家来讨论下。