1. Create a new MFC dialog project
2. Right-click the dialog box to edit the interface
3. Click on Class Wizard
4. Select the message bar, find the event handling you need below, and click Add Event Handling
1. Create a new MFC dialog project
2. Right-click the dialog box to edit the interface
3. Click on Class Wizard
4. Select the message bar, find the event handling you need below, and click Add Event Handling