Results 1 to 2 of 2

Thread: How to hide capCreateCaptureWindow() ??

  1. #1
    New Member
    Join Date
    Aug 12
    Posts
    3

    Post 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...

  2. #2
    Raging swede Atheist's Avatar
    Join Date
    Aug 05
    Location
    Sweden
    Posts
    8,013

    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.
    ---My Flickr photo (mostly screenshots these days!) stream. Have a look!

    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    TCP client/server connection | Retrieving the EventHandler for any Event by code.
    Check out the work in progress: Vortex - C++ 3D Game engine for windows and linux - (Development blog - Leave a comment!)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •