What are the possible classes for the OpenThemeData function?

前端 未结 5 1189
鱼传尺愫
鱼传尺愫 2021-02-07 13:33

I\'m trying to call the OpenThemeData (see msdn OpenThemeData) function but I couldn\'t determine what are the acceptable Class names to be passed in by the pszClassList

5条回答
  •  庸人自扰
    2021-02-07 14:00

    The article Parts and States on MSDN contains a table which shows the control classes, parts, and states. The values in the table are defined in Vsstyle.h and Vssym32.h.

    Here is a quick reference:

    BUTTON, CLOCK, COMBOBOX, COMMUNICATIONS, CONTROLPANEL, DATEPICKER, DRAGDROP, 
    EDIT, EXPLORERBAR, FLYOUT, GLOBALS, HEADER, LISTBOX, LISTVIEW, MENU, MENUBAND, 
    NAVIGATION, PAGE, PROGRESS, REBAR, SCROLLBAR, SEARCHEDITBOX, SPIN, STARTPANEL, 
    STATUS, TAB, TASKBAND, TASKBAR, TASKDIALOG, TEXTSTYLE, TOOLBAR, TOOLTIP, 
    TRACKBAR, TRAYNOTIFY, TREEVIEW, WINDOW
    

    The answer to the question Windows Visual Themes: Gallery of Parts and States? provides a "Parts and States Explorer" application where you can browse and test most of the styles.

提交回复
热议问题