测试directDraw是否被支持 static BOOL IsDirectDrawSupported() { HDC hDC; DWORD Planes; DWORD Bpp; hDC = GetDC(NULL); Planes = GetDeviceCaps(hDC, PLANES); Bpp = GetDeviceCaps(hDC, BITSPIXEL); ReleaseDC(NULL, hDC); if (Planes * Bpp < 8) return FALSE; return TRUE; }