I want to dynamically show 2 images in MFC CDialog dialog box. Can somebody please give me a hint on how to do it?

StackOverflow https://stackoverflow.com/questions/10731494

  •  10-06-2021
  •  | 
  •  

Domanda

I am able to show 2 images by opening 2 dialog boxes, but I want to show both of them in the same dialog box. The images will keep on changing

È stato utile?

Soluzione

One easy way of doing this is as follows:

  • add the images as Bitmap resources to the project;
  • add a picture control to the dialog for each bitmap, position and size as you want it;
  • set the image property of the picture controls to point to the bitmap resource.

If this way is too static or not how you want to do it, then you'll need to update your question to be more specific.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top