Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Visual Themes: Gallery of Parts and States?

Microsoft Windows lets programmers draw GUI elements using the look and feel of the current theme using functions like DrawThemeBackground and DrawThemeText. The elements are specified by Class, Part, and State, as described at the Parts and States page at MSDN.

Unfortunately, the page is not very informative (at all!). So the question is: is there somewhere a reference of all these parts and states, preferably with images of the elements (in the default Windows Vista/7 theme)?

like image 766
Andreas Rejbrand Avatar asked Oct 24 '10 18:10

Andreas Rejbrand


1 Answers

I have created a small Windows application, programmed with the table at Parts and States. This application lets the programmer browse and explore all parts and states, using the current OS theme.

Parts and States Explorer
(High-Res)

It can be downloaded at

  • https://privat.rejbrand.se/UxExplore.exe

The (Delphi, Win32 API) source, which is too long to be posted here (due to hundreds of constants) is found at

  • https://privat.rejbrand.se/UxExplore.zip
  • https://privat.rejbrand.se/UxExploreMain.html
  • https://privat.rejbrand.se/UxExploreConsts.html
like image 101
Andreas Rejbrand Avatar answered Nov 01 '22 11:11

Andreas Rejbrand