title: Load a png resource into a CBitMap
body: <p>How do I load a png resource into a <code>CBitMap</code>? When I try this it doesn't seem to work:</p>
  
  <pre><code>CImage image;
  image.LoadFromResource(AfxGetInstanceHandle(), IDB_PNG1);
  bitmap.Attach(image.Detach());
  </code></pre>
  
  <p>It gives me an error resource type not found. Is there any other way to load a PNG resource?</p>