if your having trouble with the RichEdit control not displaying the proper cursor during a right click contextmenu, here is the fix for it...

Code:
////the message handler
    case WM_SETCURSOR:
    {
        if(m_bMenuOpen)
        {
            HCURSOR m_hArrow = LoadCursor(NULL,IDC_ARROW);
            ::SetCursor(m_hArrow);
            return TRUE;
        }
        break;
    }
////////////////////////


///the menu function...
    m_bMenuOpen = TRUE;
    TrackPopupMenu(hMenu,0,pt.x,pt.y,0,m_hWnd,NULL);
    m_bMenuOpen = FALSE;
///////////////////////////
the standard ::SetCursor does not work for the RichEdit controls, figured this would help some people out doing searches on here, I know I found nothing on the net or during searches on here on the subject