C# - Pan cursor

2019-07-21 15:11发布

I'm implementing panning of a large image in a PictureBox control, and I have no problem setting the appropriate directional pan cursors. However, I can't seem to find the image used for the origin of the pan (a circle with arrows inside of it).

Where can I find it?

标签: c# cursor
2条回答
欢心
2楼-- · 2019-07-21 15:47

I think the image that you are looking is not included in the framework. Every app uses their own cursor for that (AFAIK). The closest you can get is using Cursors.SizeAll as Hans Passant already told you:

this.Cursor = Cursors.SizeAll;
查看更多
我想做一个坏孩纸
3楼-- · 2019-07-21 15:56

I found some documentation about the scroll cursor origin. Putting a window in "reader mode" by calling DoReaderMode() will plant the scroll origin icon and scroll the window.

Doc page mentioning the scroll origin icon (near the bottom of the page):

http://msdn.microsoft.com/en-us/library/bb545459.aspx

Doc page for DoReaderMode():

msdn.microsoft.com/en-us/library/bb775599(VS.85).aspx

查看更多
登录 后发表回答