【问题标题】:Getting Cursors.AppStarting in Win32 or MFC?在 Win32 或 MFC 中获取 Cursors.AppStarting?
【发布时间】:2010-11-08 19:49:21
【问题描述】:

是否可以使用 MFC 或 Win32 函数获取 .NET Cursors.AppStarting

类似于CWaitCursor,但表示后台处理。

【问题讨论】:

    标签: winapi mfc cursor


    【解决方案1】:

    使用 Win32:

    // show the app starting cursor
    HCURSOR hPrevCursor = SetCursor(LoadCursor(NULL, IDC_APPSTARTING));
    
    // restore the original cursor when done
    SetCursor(hPrevCursor);
    

    查看LoadCursorSetCursor 的文档。另请查看this note,了解恢复原始光标的细微差别。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-06-21
      • 1970-01-01
      • 1970-01-01
      • 2010-10-14
      • 1970-01-01
      • 2019-10-22
      • 2020-11-20
      • 1970-01-01
      相关资源
      最近更新 更多