I show the dialog in the MMC snap-in. When a dialog is called from the results pane, it has a Windows theme.

However, when a dialog is called from the context menu of the context menu area, it has a different style.

Capture is written in C ++, and the dialog box is a form of C #. C ++ code calls C # code through COM.
source
share