Consider the following scenarios.
Scenario 1
- You run a Microsoft Foundation Class (MFC) application that is developed in Microsoft Visual Studio 2010 Service Pack 1 (SP1).
- The MFC application uses Portable Network Graphics (PNG) images as resources by repeatedly calling the internal CPngImage::LoadFromBuffer method.
Scenario 2
- You run an MFC application that is developed in Microsoft Visual Studio 2010 SP1.
- The MFC application calls the CMFCRibbonBar class to implement ribbon bars.
NoteThe CMFCRibbonBar class for ribbon bars calls the CPngImage::LoadFromBuffer method. - The ribbon bars contain categories and buttons that use PNG images as resources.
- You repeatedly open and close a document that has customized ribbon bars.