Export (0) Print
Expand All

Theme Parts and States (Windows CE 5.0)

Windows CE 5.0
Send Feedback

Controls and windows that are drawn by Microsoft® Windows® CE are divided into parent and child parts. Most parts have a state, for example disabled, active, or selected. When you create a control, you decide which parts of the control to apply visual styles to. You divide the control into a main (parent) part and zero or more named child parts. Examples of parts are text areas, drawn shapes, images, and lines. For each part, you can define one or more background images in a single bitmap file. The different backgrounds are usually associated with different states of the control, but do not have to be. For example, if the control is disabled, a grayed background might be used. At run time, the appropriate image can be selected by using an integer value that identifies the state of the part. This state identity value is defined as a 1-based index to the correct image.

The following tables show the controls that support visual styles in Windows CE, the control parts, and their associated state identification.

Edit Control

Part IDsState Ids
EP_EDITTEXTETS_NORMAL
 ETS_DISABLED

Button Control

Part IDsState Ids
BP_PUSHBUTTONPBS_NORMAL
 PBS_DISABLED
 PBS_PRESSED
 PBS_HOT
 PBS_DEFAULTED
BP_GROUPBOXPBS_NORMAL
BP_RADIOBUTTONRBS_UNCHECKEDNORMAL
 RBS_UNCHECKEDHOT
 RBS_UNCHECKEDPRESSED
 RBS_UNCHECKEDDISABLED
 RBS_CHECKEDNORMAL
 RBS_CHECKEDHOT
 RBS_CHECKEDPRESSED
 RBS_CHECKEDDISABLED
BP_CHECKBOXCBS_UNCHECKEDNORMAL
 CBS_UNCHECKEDHOT
 CBS_UNCHECKEDPRESSED
 CBS_UNCHECKEDDISABLED
 CBS_CHECKEDNORMAL
 CBS_CHECKEDHOT
 CBS_CHECKEDPRESSED
 CBS_CHECKEDDISABLE
 CBS_MIXEDNORMAL
 CBS_MIXEDHOT
 CBS_MIXEDPRESSED
 CBS_MIXEDDISABLED

Scrollbar Control

Part IdsState Ids
SBP_ARROWBTNABS_DOWNDISABLED
 ABS_DOWNNORMAL
 ABS_DOWNPRESSED
 ABS_UPDISABLED
 ABS_UPNORMAL
 ABS_UPPRESSED
 ABS_LEFTDISABLED
 ABS_LEFTNORMAL
 ABS_LEFTPRESSED
 ABS_RIGHTDISABLED
 ABS_RIGHTNORMAL
 ABS_RIGHTPRESSED
SBP_LOWERTRACKHORZSCRBS_DISABLED
 SCRBS_NORMAL
 SCRBS_PRESSED
SBP_LOWERTRACKVERTSCRBS_DISABLED
 SCRBS_NORMAL
 SCRBS_PRESSED
SBP_UPPERTRACKHORZSCRBS_DISABLED
 SCRBS_NORMAL
 SCRBS_PRESSED
SBP_UPPERTRACKVERTSCRBS_DISABLED
 SCRBS_NORMAL
 SCRBS_PRESSED
SBP_THUMBBTNHORZSCRBS_DISABLED
 SCRBS_NORMAL
 SCRBS_PRESSED
SBP_THUMBBTNVERTSCRBS_DISABLED
 SCRBS_NORMAL
 SCRBS_PRESSED
SBP_GRIPPERHORZNone.
SBP_GRIPPERVERTNone.

See Also

Theme Support Reference


Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft