WinAPI / WPF: Set system cursor only for application

后端 未结 1 1619
余生分开走
余生分开走 2020-12-11 12:58

I have an application whose UI is custom rendered with a theme. I also want to add new non-default-cursors (like the resize cursors when the user intends to resize the windo

相关标签:
1条回答
  • 2020-12-11 13:35

    I don't know how to implement this in WPF, but if you want to set the cursor to something other than default, then your window procedure should handle the WM_SETCURSOR message.

    http://msdn.microsoft.com/en-us/library/windows/desktop/ms648382(v=vs.85).aspx

    0 讨论(0)
提交回复
热议问题