如题

解决方案 »

  1.   

    HCURSOR hcur=::LoadCursorFromFile("AniCur.ani");           //加载光标
    ::SetClassLong(GetSafeHwnd(),GCL_HCURSOR,(LONG)hcur);
      

  2.   

    LoadCursor
    系统默认的光标为如下
    Value Description 
    IDC_APPSTARTING Standard arrow and small hourglass 
    IDC_ARROW Standard arrow 
    IDC_CROSS Crosshair 
    IDC_HAND Windows NT 5.0 and later: Hand 
    IDC_HELP Arrow and question  
    IDC_IBEAM I-beam 
    IDC_ICON Obsolete for applications ed version 4.0 or later. 
    IDC_NO Slashed circle 
    IDC_SIZE Obsolete for applications ed version 4.0 or later. Use IDC_SIZEALL. 
    IDC_SIZEALL Four-pointed arrow pointing north, south, east, and west 
    IDC_SIZENESW Double-pointed arrow pointing northeast and southwest 
    IDC_SIZENS Double-pointed arrow pointing north and south 
    IDC_SIZENWSE Double-pointed arrow pointing northwest and southeast 
    IDC_SIZEWE Double-pointed arrow pointing west and east 
    IDC_UPARROW Vertical arrow 
    IDC_WAIT Hourglass 
      

  3.   

    代码LoadCursor(IDC_HAND),编译报错:“IDC_HAND” : 未声明的标识符 怎么回事?