How to create a screenshot of the program window using WinAPI & amp; C #?
I am sending the message to the window WM_PAINT (0x000F)
, which I want to screenshot, handle wParam = HDC
, but no one in my picturebox There is no screenshot. If I send a WM_CLOSE
message, then all the voting (close the target window). What do I do with WM_PAINT
? Maybe HDC is not a WinForms component? The public static extern Int64 SendMessage (IntPtr hWnd, uint message, IntPtr wParam, etc.); > IntPtr lParam); ..... Send Message (TargetWindHandal, 0x000F, PictureboxHandle, Intupet.Zero);
pictureBox.Handle
handle a window, no DC handle There are several guides online for screenshots. See also in reply to Silicon
Comments
Post a Comment