Nonzero if the function is successful; otherwise 0.
Remarks
Puts the thread that created the window into the foreground and activates the window. Keyboard input is directed to the window, and various visual cues are changed for the user. The foreground window is the window with which the user is currently working. The foreground window applies only to top-level windows (frame windows or dialogs boxes).
CWnd Overview ------解决思路---------------------- Class Members ------解决思路---------------------- Hierarchy Chart
A pointer to the window object that previously received all mouse input. It is NULL if there is no such window. The returned pointer may be temporary and should not be stored for later use.
Remarks
Causes all subsequent mouse input to be sent to the current CWnd object regardless of the position of the cursor.
When CWnd no longer requires all mouse input, the application should call theReleaseCapture function so that other windows can receive mouse input.
CWnd Overview ------解决思路---------------------- Class Members ------解决思路---------------------- Hierarchy Chart
See Also ::ReleaseCapture,::SetCapture, CWnd::GetCapture