Microsoft Foundation Class Library (MFC) - MFC Windows Control - MFC Image Editor - Microsoft Foundation Class Library (MFC)

What does an image editor do in MFC?

The Image editor has an extensive set of tools for creating and editing images, as well as features to help create toolbar bitmaps. In addition to bitmaps, icons, and cursors, the images can be edited in GIF or JPEG format using commands on the Image menu and tools on the Image Editor Toolbar.

Consider an example of creating a new project by the following steps:

Step 1 − Add a Bitmap from Add Resource dialog box.

Add Resource Dialog

Step 2 − Select Bitmap and click New. It will open the Image editor.

Select Bitmap Button

Step 3 − Design the bitmap image in Image editor and change its ID to IDB_BITMAP_START as shown above.

Step 4 − Add a button to the dialog box and also add a control Variable m_buttonStart for that button.

Step 5 − Add a bitmap variable to the header file and the following two variables appear.

Step 6 − Modify the OnInitDialog() method as shown in the following code.

Step 7 − When the above code is compiled and executed, the following output appears:

Bitmap Button Output

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

Microsoft Foundation Class Library (MFC) Topics