IExplorerBrowser shell with Windows 10 dark theme.

Daniel Brookes 1 Reputation point
2021-01-12T01:49:49.68+00:00

This problem occurs only when using the Windows 10 dark theme colours.

We use IExplorerBrowser to embed an explorer shell inside our application. The theme of the IExplorerBrowser window is initially light and looks okay.
55585-2021-01-12-09-38-02-explorer-browser-test.png

However after bringing up a separate file picker dialog (IFileDialog), which is dark themed correctly, the IExplorerBrowser starts to behave weirdly after that point. It will draw white text with a white background while scrolling.
55586-2021-01-12-09-39-41-explorer-browser-test.png

The background becomes dark after navigating to a new folder. This is usable at least but its still not perfect as the column headers for the detail view mode are incorrect.
55587-2021-01-12-09-38-32-explorer-browser-test.png

I've created this sample MFC application at https://github.com/dbrookes96/ExplorerBrowserTest which demonstrates the issue. We don't handle anything to do with IExplorerBrowserEvents at the moment. We simply just create the explorer browser as a way to navigate a directory.

Tested on Windows 10 Enterprise 20H2 19042.685

Regards,
Daniel.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,640 questions
{count} votes