BitBlt ignores CAPTUREBLT and seems to always capture a cached copy of the target

后端 未结 2 1384
情话喂你
情话喂你 2020-12-20 16:47

I am trying to capture screenshots using the BitBlt function. However, every single time I capture a screenshot, the non-client area NEVER changes no matter what I do. It\'s

2条回答
  •  既然无缘
    2020-12-20 17:22

    I capture all screen and obtains the same results... :(

    const uint SRCCOPY = 0x00CC0020; //SRCCOPY
        const uint CAPTUREBLT = 0x00CC0020 | 0x40000000; //CAPTUREBLT
    
        bool dv = BitBlt(hCaptureDC, 0, 0, Bounds.Width, Bounds.Height,
                 hDesktopDC, Bounds.Left, Bounds.Top, _with_tooltips ? CAPTUREBLT : SRCCOPY);
    

提交回复
热议问题