title: What does capturing the mouse mean in reference to the GetCapture() function?
body: <p>I'm reading about the GetCapture() function , which is part of the mfc.
  I'm still unclear as to what it does, as well as what it means to capture the mouse , as it says here:</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/dxa5eaaa(v=vs.80).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/dxa5eaaa(v=vs.80).aspx</a></p>
  
  <p>in my book it's used in this way:</p>
  
  <pre><code> void CSketcherView::OnLButtonUp(UINY nFlags, CPoint point)
   {
     if(this == GetCapture())
         ReleaseCapture();                    // Stop capturing mouse messages
  
     // ... add information to document
  }
  </code></pre>
  
  <p>So what does GetCapture() return? and what does "capturing" the mouse mean?</p>