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::GetCapture
CWnd                                        Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  static CWnd* GetCapture();
 
  Remarks
 
  Retrieves the CWnd that has the mouse capture. Only one window has the
  mouse capture at any given time. This window receives mouse input
  whether or not the cursor is within its borders.
 
  The CWnd receives the mouse capture when the SetCapture member
  function is called.
 
  Return Value
 
  Identifies the window that has the mouse capture. It is NULL if no
  window has the mouse capture.
 
  The return value may be temporary, and should not be stored for later
  use.
 
  See Also
 
  CWnd::SetCapture, ::GetCapture
 
 
                                     -♦-