我正在使用多个显示单元进行屏幕捕获。由于GetDesktopWindow()仅获取主监视器的句柄,因此我尝试使用EnumDisplayMonitors()来完成这项工作。看了MSDN网站,在main()中写了这些:HDChdc=GetDC(NULL);EnumDisplayMonitors(hdc,NULL,MyCapScreenEnumProc,0);ReleaseDC(NULL,hdc);对于“BOOLCALLBACKMyCapScreenEnumProc(HMONITORhMonitor,HDChdcMonitor,LPRECTlprcMonitor,LPARAMdwData)”