The WM_NCHITTEST message is sent to a window when the cursor moves, or when a mouse button is pressed or released. If the mouse is not captured, the message is sent to the window beneath the cursor. Otherwise, the message is sent to the window that has captured the mouse.
这是msdn说的,但是我发现实际上当鼠标左键按下同时MouseMove的时候并没有收到WM_NCHITTEST,而且WM_LBUTTONUP的时候也没有收到WM_NCHITTEST,不知道大家有没有这样的经历,还是我搞错了