Repository navigation
Is there a tool to identify a class in any window? #195
|
Related to #178, is there any tool (like WinSpy++ or ProcExp, etc) that can be used to identify the class of any part of a window of a win32 app? My custom theme applies a global dark theme across most apps and dialogs, but some apps only get partially themed: for example, NVCleanstall still has a white background. Is it possible to identify and style this class, or is it hard-coded in the program? |
Replies: 1 comment 3 replies
|
Spy++ and WinSpy++ only show the Win32 window class (for a WinForms app something like |
I checked NVCleanstall 1.19.0. It's a WPF app on .NET Framework 4.5.2: the exe references PresentationFramework and bundles Ookii.Dialogs.Wpf. The main window is still a Win32 window, but everything inside it is drawn by WPF from its own XAML templates, not by Win32 or WinForms controls. WPF reads the file name of the active theme through uxtheme and uses it to pick one of its built-in template sets (source). For a name it doesn't know, like
Dark.msstyles, it falls back to its Classic set. So no msstyles class covers that area, and API Monitor won't show one for it.What your theme can still reach is the system colors. Unless the app sets its own background, a WPF window is filled with th…