According to msdn PrintWindow (retrieved date May 5th 2017)
The application that owns the window referenced by hWnd processes the PrintWindow call and renders the image in the device context that is referenced by hdcBlt. The application receives a WM_PRINT message or, if the PW_PRINTCLIENT flag is specified, a WM_PRINTCLIENT message. For more information, see WM_PRINT and WM_PRINTCLIENT.
MSDN never claim about the message WM_PAINT. But what I have tested prove the claim above about the WM_PRINT message wrong.
App …
使用C#,我试图在我的Pocket PC应用程序中绘制一个控件实例,比如一个面板或按钮..NET控件具有漂亮的DrawToBitmap函数,但它在.NET Compact Framework中不存在.
如何在Pocket PC应用程序中将控件绘制到图像?