WindowBlinds : DirectSkin
PreviewSkinToDC
 

The PreviewSkinToDC method will preview a skin (specified by skin) into the DC provided. The width and height define the size of the preview. The preview itself will paint from coordinates 0,0 in the HDC provided.

void PreviewSkinToDC(
LPCTSTR skin,
long DC,
long width,
long height);

Parameters

skin
Skin to preview into the DC provided. The skin parameter is not a full path to the skin. It is of the form “macpc\\macpc.uis”.
DC
DC to preview the skin in.
 
width
Width of the preview.
height
Height of the preview.

Return Values

 

none.

Remarks

 

We recommend you paint this to a memory dc with a memory bitmap selected into it and then repaint from that rather than calling this function each time.

See Also

 

There are no related topics to this method.