Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "PrintWindow" in [All]

user32

.
Summary
The PrintWindow function copies a visual window into the specified device context (DC), typically a printer DC.
.

   static extern bool PrintWindow(IntPtr hwnd, IntPtr hDC, uint nFlags);

.

Private Shared Function PrintWindow(ByVal hwnd As IntPtr, ByVal hDC As IntPtr, ByVal nFlags As UInteger) As Boolean

.

bool success = PrintWindow(form.Handle, dc, 0);

.

PrintWindow Me.hWnd, Me.hDC, 0

.

https://stackoverflow.com/questions/30965343/printwindow-could-not-print-google-chrome-window-chrome-widgetwin-1

.

I was stuck for ages on this, then found that I can pass a parameter of PW_RENDERFULLCONTENT as the last parameter to PrintWindow.  Googling that shows it's new in Windows 8.1 so presumably doesn't work on 7. It may be worth trying it though, Winuser.h defines it  as

.
Documentation
[PrintWindow] on MSDN

 
Access PInvoke.net directly from VS: