WindowBlinds : DirectSkin
DrawSkinnedItem
 

The DrawSkinnedItem method is used to to paint images from the skin into a specified hdc.

void DrawSkinnedItem(
long FAR*
rect,
short imgNo,
short item,
long hdc,
long hdc2);

Parameters

rect
The rectangular area of the hdc the item should be drawn in.
imgNo
The item image number.  See the UIS2 docs for part descriptions.  See the remarks below for more information.
 
item
The item to draw.  See the remarks for more information.
 
hdc
The HDC to draw to.
 
hdc2
A screendc used for compatibility.  If this is not needed, the HDC provided for the hdc parameter can be used.

Return Values

 

This method does not return a value.  If a return value is needed, use DrawSkinnedItemEx.

Remarks

 
ID Item Description
0 Button
ID imgNo
0 Normal
1 Pressed
2 Disabled
3 Focused
4 Default
1 Progress Bar
ID imgNo
0 Background
1 Foreground
2 Toolbar
ID imgNo
0 Normal
1 Pressed
2 Disabled
3 Focused
4 Default
3 Taskbar  Not Supported.  These images are not loaded for use in DirectSkin.
4 Tab
ID imgNo
0 Normal
1 Pressed
2 Disabled
3 Focused
4 Default
5 Header
ID imgNo
0 Normal
1 Pressed
2 Disabled
3 Focused
4 Default
6 Scrollbar Image
ID imgNo
0 Normal Left Arrow Button
1 Pressed Left Arrow Button
2 Disabled Left Arrow Button
3 Mouse-Over Left Arrow Button
4 Normal Right Arrow Button
5 Pressed Right Arrow Button
6 Disabled Right Arrow Button
7 Mouse-Over Right Arrow Button
8 Normal Up Arrow Button
9 Pressed Up Arrow Button
10 Disabled Up Arrow Button
11 Mouse-Over Up Arrow Button
12 Normal Down Arrow Button
13 Pressed Down Arrow Button
14 Disabled Down Arrow Button
15 Mouse-Over Down Arrow Button
16 Normal Horizontal Scrollbar Thumb
17 Pressed Horizontal Scrollbar Thumb
18 Mouse-Over Horizontal Scrollbar Thumb
19 Normal Vertical Scrollbar Thumb
20 Pressed Vertical Scrollbar Thumb
21 Mouse-Over Vertical Scrollbar Thumb
22 Window Sizing Grip
7 Scrollbar ImageMask
ID imgNo
0 Normal
1 Pressed
2 Disabled
3 Focused
4 Default
8 Scrollbar 3 Unsupported.
9 Scrollbar 4 Unsupported.
10 Scrollbar 5 Unsupported.
11 Scrollbar Horizontal
ID imgNo
0 Horizontal Scrollbar Preview Image
12 Scrollbar Vertical
ID imgNo
0 Vertical Scrollbar Preview Image
13 Combo Box
ID imgNo
0 Normal
1 Pressed
2 Disabled
3 Mouse-Over
14 Custom Edge
ID imgNo
0 Normal
1 Pressed
15 Groupbox Edge
ID imgNo
0 Normal
1 Pressed
16 Groupbox Text Background
ID imgNo
0 Normal
1 Pressed
17 Menu Background
ID imgNo
0 Normal
18 Menu Item
ID imgNo
0 Normal
1 Separator
2 Disabled
3 Mouse-Over
4 Default
19 Status Bar
ID imgNo
0 Sunk
1 Raised
2 Flat
20 ComboBox Border
ID imgNo
0 Normal
1 Pressed
2 Disabled
21 Tab Background
ID imgNo
0 Normal

See Also

 

DrawSkinnedItemEx, DrawWindowFrame