I have a .NET C# program that references some C++/CLI dlls which in turn can launch some legacy MFC forms/dialogs. However when these dialogs are launched they do not launch with the current Windows theme, aka visual styles, applied. They open as the old Windows 98 style.
These dialogs do launch with visual styles if we launch through the original C++/CLI project with the pragma comment included in the stdafx.h of the Application Exe project.
I've tried several of the suggestions within the referenced Microsoft article about applying visual styles to C++ projects. However none of them work, since I assume the article is targeted towards a pure C++ solution rather than a hybrid C# solution referencing old MFC dialogs.
tl;dr Can launch MFC dialogs from C# program, but dialogs are not visually styled.