发送alt+print screen,然后从剪贴板中得到图片

解决方案 »

  1.   

    先谢谢两位
    TO:jennyvenus(九阴白骨脱衣艳舞) 
    这种方法不行,效果相同,不信你试试TO:suntt(两条腿的狗)
    如果是MDI子窗体,而且又比父窗体要大,那要如何隐藏呢?
      

  2.   

    根据MSDN文档,API函数有一个新常量
    const CAPTUREBLT = &h40000000
    可以实现不被上层窗口覆盖的拷贝,但是我尝试了,没有成功,如果你感兴趣的话可以研究一下。
      

  3.   

    TO:TechnoFantasy(www.applevb.com) 
    你说的那个常量在什么地方用?
      

  4.   

    试一试WinXP新增API:PrintWindowhttp://msdn.microsoft.com/library/en-us/gdi/prntspol_6qpj.asp?frame=true
    PrintWindow
    The PrintWindow function copies a visual window into the specified device context (DC), typically a printer DC.BOOL PrintWindow(
      HWND hwnd,               // Window to copy
      HDC  hdcBlt,             // HDC to print into
      UINT nFlags              // Optional flags
    );Parameters
    hwnd 
    Handle to the window that will be copied. 
    hdcBlt 
    Handle to the device context. 
    nFlags 
    Specifies the drawing options. It can be one of the following values. Value Meaning 
    PW_CLIENTONLY Only the client area of the window is copied to hdcBlt. By default, the entire window is copied. 
    Return Values
    If the function succeeds, it returns a nonzero value.If the function fails, it returns zero.Res
    This function is similar to WM_PRINT. Before calling PrintWindow, first select a bitmap into hdcBlt. Requirements 
      Windows NT/2000/XP: Included in Windows XP and Windows .NET Server.
      Windows 95/98/Me: Unsupported.
      Header: Declared in Winspool.h; include Windows.h.
      Library: Use Winspool.lib.
      

  5.   

    to ronggang(ronggang) 
    从最新的Platform SDK中拷贝过来的