title: Can't change the cursor (from inside OnSetCursor)
body: <p>I'm trying to change the cursor inside my <code>CStatic</code>-derived class by handling <code>OnSetCursor</code></p>
  
  <pre><code>class CMyStatic : public CStatic
  {
      // ....
  };
  
  BEGIN_MESSAGE_MAP(CMyStatic, CStatic)
      ON_WM_SETCURSOR()
  END_MESSAGE_MAP()
  
  BOOL CMyStatic::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message) 
  {
      TRACE(_T("OnSetCursor\n"));
      SetCursor(AfxGetApp()-&gt;LoadStandardCursor(IDC_CROSS));
      return TRUE;
  }
  </code></pre>
  
  <p><code>OnSetCursor</code> gets called every time I move the mouse, but the cursor isn't changed. What am I doing wrong?</p>