What window messages are triggered when window comes to foreground?
问题 What windows messages are triggered (wm_xyz) when an application window goes from background to foreground (or from invisible/minimized to visible/maximised)? 回答1: There's a complex interaction involving: WM_NCHITTEST WM_NCACTIVATE WM_ACTIVATEAPP WM_ACTIVATE WM_MOUSEACTIVATE WM_SETFOCUS WM_SHOWWINDOW WM_NCPAINT WM_PAINT and others, depending on the details of the situation You can learn a lot by using Spy++ (which comes with Visual Studio). If you can provide more detail on what you're trying