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 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: |
|
Topics: |
Example
L_INT LPaintEffect__SetShapeParametersExample(LBitmapBase& LeadBitmap,HDC hDC) { L_INT nRet; LPaintEffect LeadPaintEffect; SHAPEDLGPARAMS ShapeDlgParm; RECT Rect; LeadPaintEffect.SetBitmap(&LeadBitmap) ; LeadPaintEffect.SetDC(hDC) ; LeadPaintEffect.GetShapeParameters(&ShapeDlgParm) ; ShapeDlgParm.crBack = RGB(0,0,255) ; nRet = LeadPaintEffect.SetShapeParameters(&ShapeDlgParm) ; if(nRet != SUCCESS) return nRet; Rect.left = 0 ; Rect.top = 0 ; Rect.right = LeadBitmap.GetWidth() ; Rect.bottom = LeadBitmap.GetHeight() ; nRet = LeadPaintEffect.Draw3dShape(&Rect,EFX_SHAPE_RECTANGLE); if(nRet != SUCCESS) return nRet; LeadPaintEffect.SetDC(0) ; return SUCCESS; }