|
-
Aug 8th, 2012, 12:58 AM
#1
Thread Starter
New Member
How to hide capCreateCaptureWindow() ??
Hiiii
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...
-
Aug 8th, 2012, 06:31 AM
#2
Re: How to hide capCreateCaptureWindow() ??
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|