MFC problem with CMFCVisualManager::SetDefaultManager
C / C++ / MFC
1
Posts
1
Posters
1
Views
1
Watching
-
Changing the visual style of an application causes handle leaks. In CMFCVisualManager there exists a function UpdateSystemColors, which is called three times when the style is changed. Every call opens theme handles. Below the UpdateSystemColors is a function CleanUpThemes, which closes the theme data handles. This function is only called once when the style changes. This causes 38 handles which will not be closed afterwards. I've looked for a possibility to fix this in source code, but this needs to compile the MFC lib on my own, but there is no makefile for it... Any thoughts?