title: How to determine if the current window is the active window?
body: <p>How can I tell if my window is the current active window?
  My current guess is to do GetForegroundWindow and compare the HWND with that of my window.
  Is there a better method than that?</p>
  
  <p>I'm using Win32 API / MFC.</p>