次の方法で共有


Theme Parts and States (Windows Embedded CE 6.0)

1/6/2010

Controls and windows that are drawn by Windows Embedded 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 dimmed 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 Embedded CE, the control parts, and their associated state identification.

Ee492032.collapse(en-US,WinEmbedded.60).gifEdit Control

Part IDs State Ids

EP_EDITTEXT

ETS_NORMAL

 

ETS_DISABLED

Ee492032.collapse(en-US,WinEmbedded.60).gifButton 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

Ee492032.collapse(en-US,WinEmbedded.60).gifScrollbar 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

Concepts

Theme Support Reference