lawyerbta.blogg.se

Mouse cursors hand png
Mouse cursors hand png












While I can't explain exactly why this happens, I think I can show how to get around it. Y = ci.ptScreenPos.y - ((int)icInfo.yHotspot) X = ci.ptScreenPos.x - ((int)icInfo.xHotspot) If (Win32Stuff.GetIconInfo(hicon, out icInfo)) If (ci.flags = Win32Stuff.CURSOR_SHOWING)

mouse cursors hand png

Win32Stuff.CURSORINFO ci = new Win32Stuff.CURSORINFO() static Bitmap CaptureCursor(ref int x, ref int y) NOTE: If you click on the original article someone offers a suggestion - it doesn't work.How can I capture the mouse cursor image when the image is one of these "I-beam"-type images.However, when the mouse cursor is changed to the insertion point (the "I-beam" cursor) - for example typing in NOTEPAD - then code doesn't work - the result is that I get a faint image of the cursor - like a very translucent (gray) version of it instead of the blank & white one would expect.

mouse cursors hand png

Code works fine when the mouse cursor is the normal pointer or hand icon - the mouse is rendered correctly on the screenshot.Note that the code captures the the mouse cursor also (which is desirable for me).My code is based derived from this project:.I am writing a screen capture application.














Mouse cursors hand png