请问为什么屏幕上的截图没有mouse?
我用以下在屏幕上截图:
Graphics graphics = control.CreateGraphics();
IntPtr hDCPanel = graphics.GetHdc();
IntPtr hDCDesktop = Win32.GetDC(hWndDesktop);
Win32.StretchBlt(hDCPanel, 0, 0, 800, 600,
hDCDesktop, left, top,800 / zoomRate, 600 / zoomRate,
Win32.SRCCOPY);
graphics.ReleaseHdc(hDCPanel);
Win32.ReleaseDC(hWndDesktop, hDCDesktop);
所调用的API是这样的(在Win32 class底下):
[DllImport("Gdi32.dll")]
public static extern int StretchBlt(
IntPtr hdcDest,
int nXOriginDest,
int nYOriginDest,
int nWidthDest,
int nHeightDest,
IntPtr hdcSrc,
int nXOriginSrc,
int nYOriginSrc,
int nWidthSrc,
int nHeightSrc,
int dwRop
);
可以截图,但所截出来的图没有鼠标,请问怎样也把mouse的形状也截到图上? 谢谢.