title: MFC C++: does setfocus set the capture as well?
body: <p>I have a CDialog that is calling DoModal(), the dialog is opened, everything else is disabled, but for some reason I have only the keyboard capture and not the mouse.</p>
  
  <p>The mouse capture is still on the last item it was on.</p>
  
  <p>If I call setfocus before the DoModal, it doesn't work, but if I do setCapture before the DoModal it works.</p>
  
  <p>Can anyone explain it to me?</p>
  
  <p>What is the problem? I want to understand why I need to call to setCapture or releaseCapture before the DoModal (btw- releaseCapture works as well...)</p>