Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 103823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T01:11:05+00:00 2026-05-11T01:11:05+00:00

I want to embed the native camera application into custom form. The RECT r

  • 0

I want to embed the native camera application into custom form. The RECT r properties where I want to embed the camera are the following:

r.top = 26; r.bottom = 220; r.left = 0; r.right = 320;

and this is the method which runs the native camera application:

HRESULT CPhotoCapture::CameraCapture(HWND hwndOwner, LPTSTR pszFilename) { HRESULT hResult; SHCAMERACAPTURE shcc;

//Set the SHCAMERACAPTURE structure ZeroMemory(&shcc, sizeof(shcc)); shcc.cbSize = sizeof(shcc); shcc.hwndOwner = hwndOwner; shcc.pszInitialDir = _T('\\My Documents'); shcc.pszDefaultFileName = _T('test.jpg'); shcc.pszTitle = _T('Camera Demo'); shcc.StillQuality = CAMERACAPTURE_STILLQUALITY_HIGH; shcc.VideoTypes = CAMERACAPTURE_VIDEOTYPE_MESSAGING; shcc.nResolutionWidth   = 1024; shcc.nResolutionHeight  = 768; shcc.nVideoTimeLimit    = 15; shcc.Mode = CAMERACAPTURE_MODE_STILL;  //display the camera capture dialog hResult = SHCameraCapture(&shcc);  if(hResult == S_OK) {     //TODO:: Write to log }  return hResult; 

}

The method above is called from the window which dimensions are equal to r:

HRESULT hr = S_OK; hr = m_PhotoCapture.CameraCapture(this->m_hWnd, L'test'); 

Does anyone know how to modify the above function (hwndOwner) the way to display the embedded resource in the rectangle r?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T01:11:05+00:00Added an answer on May 11, 2026 at 1:11 am

    You’re not too clear on what hwndOwner points to. My **guess* on how this probably works is that you need to create a Window that is a child of your main display Window whose location matches your rect (and is visible), then pass it’s handle in and that the capture API then uses DShow to pipe the output of the frame grabs from the camera to that Window that the handle represents.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 68k
  • Answers 68k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Entry table, with Name and UniqueID (PK) Property Table, with… May 11, 2026 at 12:04 pm
  • added an answer Since the parameters in a prepared statement are just a… May 11, 2026 at 12:04 pm
  • added an answer There are three possibilities I can think of: The GIT_DIR… May 11, 2026 at 12:04 pm

Related Questions

I want to embed the native camera application into custom form. The RECT r
I want to embed multiple audio to my site. I want the file to
I want to embed a wikipedia article into a page but I don't want
I want to embed an .asp page on an html page. I cannot use
I want to embed Javascript in a hobby game engine of mine. Now that
I want to embed a link to a controller action in my page so
I have small problem with my .net 2.0 winforms application. I want to embed
I want to allow users to paste <embed> and <object> HTML fragments (video players)
I want to loop over the contents of a text file and do a
I want to assign the decimal variable "trans" to the double variable "this.Opacity". decimal

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.