想截某个指定窗口的屏,如果窗口被挡住怎么办? 有没有办法可以截被挡住了的窗口屏幕内容?郁闷ing... 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 应该可能的(除非最小话了),ms的taskswitch.exe就可以的 hdcScreen = CreateDC("DISPLAY", NULL, NULL, NULL); hdcCompatible = CreateCompatibleDC(hdcScreen); // Create a compatible bitmap for hdcScreen. hbmScreen = CreateCompatibleBitmap(hdcScreen, GetDeviceCaps(hdcScreen, HORZRES), GetDeviceCaps(hdcScreen, VERTRES)); if (hbmScreen == 0) errhandler("hbmScreen", hwnd); // Select the bitmaps into the compatible DC. if (!SelectObject(hdcCompatible, hbmScreen)) errhandler("Compatible Bitmap Selection", hwnd); // Hide the application window. ShowWindow(hwnd, SW_HIDE); //Copy color data for the entire display into a //bitmap that is selected into a compatible DC. if (!BitBlt(hdcCompatible, 0,0, bmp.bmWidth, bmp.bmHeight, hdcScreen, 0,0, SRCCOPY)) errhandler("Screen to Compat Blt Failed", hwnd); // Redraw the application window. ShowWindow(hwnd, SW_SHOW); 自己看一下CreateDC这个API函数的参数含义,改一下就行了 下拉按钮无法响应 Vista Aero Glass 奇怪问题,请各位大虾会诊~~~感激不尽 界面设计问题 ActiveX控件的问题,高手请进 请问各位大侠为什么设置打印DC会这样? 注册服务程序 关于视频与位图的问题,绝对是高手级问题 为什么论坛没有易语言的分区 我有一个位图(bmp),将他复制到vc++中的BITMAP中就变成灰白两色的了,为什么? 如何实现文件的拖动??? DLL怎么向主进程postmessage键盘的一个按键消息!
hdcCompatible = CreateCompatibleDC(hdcScreen);
// Create a compatible bitmap for hdcScreen.
hbmScreen = CreateCompatibleBitmap(hdcScreen,
GetDeviceCaps(hdcScreen, HORZRES),
GetDeviceCaps(hdcScreen, VERTRES));
if (hbmScreen == 0)
errhandler("hbmScreen", hwnd);
// Select the bitmaps into the compatible DC.
if (!SelectObject(hdcCompatible, hbmScreen))
errhandler("Compatible Bitmap Selection", hwnd);
// Hide the application window.
ShowWindow(hwnd, SW_HIDE);
//Copy color data for the entire display into a
//bitmap that is selected into a compatible DC.
if (!BitBlt(hdcCompatible,
0,0,
bmp.bmWidth, bmp.bmHeight,
hdcScreen,
0,0,
SRCCOPY))
errhandler("Screen to Compat Blt Failed", hwnd);
// Redraw the application window.
ShowWindow(hwnd, SW_SHOW); 自己看一下CreateDC这个API函数的参数含义,改一下就行了