WindowBlinds : DirectSkin
DrawWindowFrameSafe
 

The DrawWindowFrameSafe method is used to paint a preview of a skinned window into the hdc specified. The function was added for very specific purposes and it is recommended you avoid this function and use PreviewSkinToDC instead

void DrawWindowFrameSafe(
long
hwndtoclone,
long winstyleofwindow,
long exstyleofwindow,
short state,
long left,
long top,
long right,
long bottom,
long hdc );

Parameters

hwndtoclone
Handle to a window with the desired titlebar text.
winstyleofwindow
Window styles to use.
exstyleofwindow
Window extended styles to use.
 
state
Provide 1 for active window, 0 for inactive.
 
left
Left side used for drawing to the HDC. 
top
Top side used for drawing to the HDC. 
right
Right side used for drawing to the HDC. 
bottom
Bottom side used for drawing to the HDC. 
hdc
HDC to draw to.

Return Values

 

This method does not return a value.

Remarks

  This method is usually used to render skin previews.
This is the same as DrawWindowFrame apart fro the RECT pointer being changed into left, top, right and bottom parameters so .NET apps can use it.

See Also

 

DrawSkinnedItem, DrawSkinnedItemEx, DrawWindowFrame