I’ve been migrating from directly calling OS functions in my app to the use of Actipro Shell. This has resolved a couple of issue I’ve had in my app (thank you!) but in doing so I discovered another issue. I use the Ribbon with the backstage and recent document manager in my app. In it, some files types do not render the correct 32x32 image when I set ImageSourceLarge to IShellObject.MediumIcon. So far, I have only seen this with text documents (.txt) on Win 10 and Win 11 machines. What I get is an image outline with a gray interior. It does not matter if the application is 32bit or 64bit. Oddly enough, it shows the correct image on Win 7. I have also found that on Win 10 and Win 11, File Explorer’s Content view and Word’s Open tab show the correct 32x32 image. I should note that calls to shell32.dll’s SHGetFileInfo return the correct images.
How can I get the file type image displayed in the recent document manager to match what Windows shows?