Search code examples
mfcgraphic

How show Statically a Picture With Picture Control in MFC?


I Have do Follow :

Drag Picture Control to dialog. Go to Picture Control propeties. Change its "Type" to Bitmap.

Then I Add Bitamap ID, and Picture is showed in Picture Control, But When I Run the Program, nothing show in Picture Control. Wheres the Problem?


Solution

  • I used the following procedure to make this work.

    First: Add "Microsoft Forms 2.0 Image" Control to the ToolBox.

    Second: Drag a "Microsoft Forms 2.0 Image" to Form.

    Third: Select That and Add a Picture From Picture Properties.

    Is OK and Work 100 Percentage.