Theme Parts and States (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 IDs State Ids
EP_EDITTEXT ETS_NORMAL
  ETS_DISABLED

Button Control

Part IDs State Ids
BP_PUSHBUTTON PBS_NORMAL
  PBS_DISABLED
  PBS_PRESSED
  PBS_HOT
  PBS_DEFAULTED
BP_GROUPBOX PBS_NORMAL
BP_RADIOBUTTON RBS_UNCHECKEDNORMAL
  RBS_UNCHECKEDHOT
  RBS_UNCHECKEDPRESSED
  RBS_UNCHECKEDDISABLED
  RBS_CHECKEDNORMAL
  RBS_CHECKEDHOT
  RBS_CHECKEDPRESSED
  RBS_CHECKEDDISABLED
BP_CHECKBOX CBS_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 Ids State Ids
SBP_ARROWBTN ABS_DOWNDISABLED
  ABS_DOWNNORMAL
  ABS_DOWNPRESSED
  ABS_UPDISABLED
  ABS_UPNORMAL
  ABS_UPPRESSED
  ABS_LEFTDISABLED
  ABS_LEFTNORMAL
  ABS_LEFTPRESSED
  ABS_RIGHTDISABLED
  ABS_RIGHTNORMAL
  ABS_RIGHTPRESSED
SBP_LOWERTRACKHORZ SCRBS_DISABLED
  SCRBS_NORMAL
  SCRBS_PRESSED
SBP_LOWERTRACKVERT SCRBS_DISABLED
  SCRBS_NORMAL
  SCRBS_PRESSED
SBP_UPPERTRACKHORZ SCRBS_DISABLED
  SCRBS_NORMAL
  SCRBS_PRESSED
SBP_UPPERTRACKVERT SCRBS_DISABLED
  SCRBS_NORMAL
  SCRBS_PRESSED
SBP_THUMBBTNHORZ SCRBS_DISABLED
  SCRBS_NORMAL
  SCRBS_PRESSED
SBP_THUMBBTNVERT SCRBS_DISABLED
  SCRBS_NORMAL
  SCRBS_PRESSED
SBP_GRIPPERHORZ None.
SBP_GRIPPERVERT None.

See Also

Theme Support Reference

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.