LPaintEffect::SetShapeParameters

#include "ltwrappr.h"

L_INT LPaintEffect::SetShapeParameters(pShapeDlgParm)

LPSHAPEDLGPARAMS pShapeDlgParm;

/* pointer to a shape structure */

Sets the shape parameters for LPaintEffect::Draw3dShape.

Parameter

Description

pShapeDlgParm

Pointer to a structure of type SHAPEDLGPARAMS that contains the shape parameters

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Required DLLs and Libraries

LTDIS
LTEFX

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

Class Members

Topics:

Implementing Special Effects

Example

L_VOID TestShape(LBitmapBase& LeadBitmap,HDC hDC)
{
   LPaintEffect LeadPaintEffect;
   SHAPEDLGPARAMS ShapeDlgParm;
   RECT Rect;
   
   LeadPaintEffect.SetBitmap(&LeadBitmap) ;
   LeadPaintEffect.SetDC(hDC) ;

   LeadPaintEffect.GetShapeParameters(&ShapeDlgParm) ;

   ShapeDlgParm.crBack = RGB(0,0,255) ;

   LeadPaintEffect.SetShapeParameters(&ShapeDlgParm) ;

   Rect.left = 0 ;
   Rect.top = 0 ;
   Rect.right = LeadBitmap.GetWidth() ;
   Rect.bottom = LeadBitmap.GetHeight() ;

   LeadPaintEffect.Draw3dShape(&Rect,EFX_SHAPE_RECTANGLE);
   LeadPaintEffect.SetDC(0) ;
}