C# - Pan cursor

2019-07-21 15:45发布

问题:

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?

回答1:

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;


回答2:

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



标签: c# cursor