Results 1 to 2 of 2

Thread: How to hide capCreateCaptureWindow() ??

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2012
    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 2005
    Location
    Sweden
    Posts
    8,018

    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.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

Posting Permissions

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



Click Here to Expand Forum to Full Width