我正在使用 avicap.dll,我想打开相机的设置。 我的代码是:
mCapHwnd = capCreateCaptureWindowA(
"WebCap1", 536870912, 0, 0, m_Width, m_Height, 0, 0);
int i = SendMessage(mCapHwnd, 1034, 0, 0);
int j = SendMessage(mCapHwnd, 1066, 0, 1);
但是,高级选项卡打开了。
我希望在加载时打开源设置。 如何做到这一点?
最佳答案
您所知道的 1066
实际上是 WM_CAP_DLG_VIDEOSOURCE
。所以你基本上是在做 the following :
The WM_CAP_DLG_VIDEOSOURCE message displays a dialog box in which the user can control the video source. The Video Source dialog box might contain controls that select input sources; alter the hue, contrast, brightness of the image; and modify the video quality before digitizing the images into the frame buffer. You can send this message explicitly or by using the capDlgVideoSource macro.
这将打开与捕获设备关联的四个可能对话框之一,阅读 MSDN 上的其他三个,WM_CAP_DLG_*
消息:Displaying Dialog Boxes to Set Video Characteristics .
关于c++ - 使用 avicap.dll 打开设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8245295/