Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CWnd::SetCapture
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  CWnd* SetCapture();
 
  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 the ReleaseCapture Windows function so that other windows can
  receive mouse input.
 
  Return Value
 
  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.
 
  See Also
 
  ::ReleaseCapture, ::SetCapture, CWnd::GetCapture
 
 
                                     -♦-