title: How to display an image in a Visual C++ application?
body: <p>I am trying to display a PNG image in a Visual C++ (2019) application. Its a Win32 dialog based application (I don't use MFC) to show a directory of addresses that contains name, address and a photograph (800x600px). So, all is well except the <strong>Photograph</strong>. I tried all I knew with the help from Internet but still I could not get it to work. An e.g. of how my app looks like is given below.</p>
  <p><a href="https://i.stack.imgur.com/H7dJB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H7dJB.png" alt="enter image description here" /></a></p>
  <p>What I have tried so far...
  (1) Added Images as resources (<em>You can see images in the &quot;Resource Files&quot;</em>).
  (2) Created the Dialog Box where the image would be displayed.
  (3) Added a <strong>Picture Control</strong> to the dialog box.
  (4) Tried to connect the Image to the <strong>Picture Control</strong>... (~Problem~)</p>
  <p>So, I still did not find a way to connect &quot;Picture Control&quot; to the &quot;Image&quot;. Appreciate it if you could show me how to do it, or send me a link where it describes the way to do it.</p>