请问怎样把光标设成其它形式(比如漏斗型的

解决方案 »

  1.   

    LoadCursor()
    当然得先添加光标位图,设置等等
      

  2.   


    AfxGetApp()->LoadCursor(IDC_MYCURSOR);
    AfxGetApp()->LoadStandardCursor(IDC_ARROW);
    打開winuser.h
    #define IDC_ARROW           MAKEINTRESOURCE(32512)
    #define IDC_IBEAM           MAKEINTRESOURCE(32513)
    #define IDC_WAIT            MAKEINTRESOURCE(32514)
    #define IDC_CROSS           MAKEINTRESOURCE(32515)
    #define IDC_UPARROW         MAKEINTRESOURCE(32516)
    #define IDC_SIZE            MAKEINTRESOURCE(32640) /* OBSOLETE: use IDC_SIZEALL */
    #define IDC_ICON            MAKEINTRESOURCE(32641) /* OBSOLETE: use IDC_ARROW */
    #define IDC_SIZENWSE        MAKEINTRESOURCE(32642)
    #define IDC_SIZENESW        MAKEINTRESOURCE(32643)
    #define IDC_SIZEWE          MAKEINTRESOURCE(32644)
    #define IDC_SIZENS          MAKEINTRESOURCE(32645)
    #define IDC_SIZEALL         MAKEINTRESOURCE(32646)
    #define IDC_NO              MAKEINTRESOURCE(32648) /* not in win3.1 */
    #if(WINVER >= 0x0500)
    #define IDC_HAND            MAKEINTRESOURCE(32649)
    #endif /* WINVER >= 0x0500 */
    #define IDC_APPSTARTING     MAKEINTRESOURCE(32650) /* not in win3.1 */
    #if(WINVER >= 0x0400)
    #define IDC_HELP            MAKEINTRESOURCE(32651)
    #endif /* WINVER >= 0x0400 */
      

  3.   

    SetCapture();
    ShowCursor(FALSE);
    //设置此种情况的鼠标状态
    m_cursorOnSymbol = AfxGetApp()->LoadCursor(cursorid);//cursorid是光标的id号
    SetCursor(m_cursorOnSymbol);
    ShowCursor(TRUE);
      

  4.   

    m_cursorOnSymbol = AfxGetApp()->LoadCursor(cursorid);//cursorid是光标的id号
    SetCursor(m_cursorOnSymbol);
      

  5.   

    ::SetCursor(AfxGetApp()->LoadCursor(_T("YourCursor")));
    MFC中LoadCursor的两种原型
    HCURSOR LoadCursor( LPCTSTR lpszResourceName ) const;HCURSOR LoadCursor( UINT nIDResource ) const;
      

  6.   

    我在对话框的OnInitDialog()里用了AfxGetApp()->LoadStandardCursor(IDC_CROSS),可是鼠标形状没有变化!!!!!!!!请问怎么回事阿