I am creating a webcam application in Visual C++. I used vfw32.lib for that. Its working properly but the problem is that I want to hide the capture window, which is created by the capCreateCaptureWindow().
I tried this
hMyWindow = capCreateCaptureWindow("handle",0, 0, 0, ImageX, ImageY, this->m_hWnd, 1);
ShowWindow(SW_HIDE);
but the window is still there...
Please get me out of this problem...
You are not passing the flag WS_VISIBLE to capCreateCaptureWindow, so I would assume it to be invisible by default. In the first call to the ShowWindow method, the nCmdShow parameter is ignored, so it may very well not be using SW_HIDE there even though you explicitly specify it.
Simply change your code to now call ShowWindow(SW_HIDE) and hopefully the window should remain invisible.