Categorical List of MFC Samples
每个用到MFC的windows应用程序都必须实现一个继承cwinapp的类,而且只能实例话一次
GetForegroundWindow
得到我们调用者进程当前整使用窗口的句柄,(当前用户正在工作的窗口)
The GetForegroundWindow function returns a handle to the foreground window (the window with which the user is currently working). The system assigns a slightly higher priority to the thread that creates the foreground window than it does to other threads.