L_PntDlgShape
#include "ltpdg.h"
L_INT EXT_FUNCTION L_PntDlgShape( hWnd, pShapeDlgInfo )
| HWND hWnd; | /*owner of the dialog */ | 
| pPAINTDLGSHAPEINFO pShapeDlgInfo; | /* pointer to a structure */ | 
Brings up the shape properties dialog box.
| Parameter | Description | 
| hWnd | Handle of the window that owns the dialog. | 
| pShapeDlgInfo | Pointer to a PAINTDLGSHAPEINFO structure that contains shape information. The values present in pShapeDlgInfo when the function is called are used to initialize the dialog, if PAINT_DLG_SHAPE_INITUSEDEFAULT is not set in the dwFlags member of pShapeDlgInfo. When this function returns, this parameter is updated with the values entered through the dialog. | 
Returns
| SUCCESS | The function was successful. | 
| < 1 | An error occurred. Refer to Return Codes. | 
Required DLLs and Libraries
| LTPDG 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: | L_PntGetProperty, L_PntSetProperty, L_PntDrawShapeEllipse, L_PntDrawShapeLine, L_PntDrawShapePolyBezier, L_PntDrawShapePolygon, L_PntDrawShapeRectangle, L_PntDrawShapeRoundRect | 
| Topics: | |
| 
 | 
Example
// This example will display the Shape common dialog 
L_TCHAR * g_ppszPaperTexture [ ] = { TEXT("Paper 0"), TEXT("Paper 1"), TEXT("Paper 2"), 
                                                             TEXT("Paper 3"), TEXT("Paper 4"), TEXT("Paper 5") } ;
PAINTDLGSHAPEINFO g_DlgShapeInfo ;                                      
L_VOID ShapeDlgTest ( HWND hWnd, L_BOOL fUseDef ) 
{
   if ( fUseDef == TRUE ) 
   {
      g_DlgShapeInfo.dwFlags = PAINT_DLG_SHAPE_INITUSEDEFAULT | PAINT_DLG_SHAPE_SHOWALL ;
   }
   else
   {
      g_DlgShapeInfo.nSize = sizeof ( PAINTDLGSHAPEINFO ) ;
      g_DlgShapeInfo.dwFlags = PAINT_DLG_SHAPE_SHOWBKGRNDSTYLE |        
                                                 PAINT_DLG_SHAPE_SHOWBKOPAQUECOLOR |      
                                                 PAINT_DLG_SHAPE_SHOWBORDERSTYLE       |
                                                 PAINT_DLG_SHAPE_SHOWBORDERWIDTH       |
                                                 PAINT_DLG_SHAPE_SHOWBORDERBRUSHSTYLE  |
                                                 PAINT_DLG_SHAPE_SHOWBORDERCOLOR       |
                                                 PAINT_DLG_SHAPE_SHOWGRADIENTSTYLE |
                                                 PAINT_DLG_SHAPE_SHOWGRADIENTDIRECTION |
                                                 PAINT_DLG_SHAPE_SHOWGRADIENTSTARTCOLOR|
                                                 PAINT_DLG_SHAPE_SHOWGRADIENTENDCOLOR  |
                                                 PAINT_DLG_SHAPE_SHOWGRADIENTPREVIEW   |
                                                 PAINT_DLG_SHAPE_SHOWGRADIENTSTEPS     |
                                                 PAINT_DLG_SHAPE_SHOWENDCAP            |
                                                 PAINT_DLG_SHAPE_SHOWELLIPSEWIDTH      |
                                                 PAINT_DLG_SHAPE_SHOWELLIPSEHEIGHT     |
                                                 PAINT_DLG_SHAPE_SHOWOPACITY           |
                                                 PAINT_DLG_SHAPE_SHOWTEXTURE           |
                                                 PAINT_DLG_SHAPE_SHOWDEFAULT;
      g_DlgShapeInfo.pszTitle = TEXT("Lead Shape Common Dialog ") ;
      g_DlgShapeInfo.nBackgroundStyle = PAINT_SHAPE_BACK_STYLE_GRADIENT  ;   
      g_DlgShapeInfo.crBackgroundColor = RGB ( 255, 0, 0 ) ;     
      g_DlgShapeInfo.nBorderStyle =  PAINT_SHAPE_BORDER_STYLE_DOT;
      g_DlgShapeInfo.nBorderWidth = 10;
      g_DlgShapeInfo.nBorderBrushStyle = PAINT_SHAPE_BORDER_BRUSH_STYLE_COLOR ; 
      g_DlgShapeInfo.crBorderColor     = RGB ( 0, 255, 0 ) ;   
      g_DlgShapeInfo.nGradientStyle = PAINT_SHAPE_GRADIENT_STYLE_RECTANGLE_FROM_C;
      g_DlgShapeInfo.crGradientStartColor = RGB ( 255, 0, 0 ) ;        
      g_DlgShapeInfo.crGradientEndColor   = RGB ( 0, 0, 255 ) ;       
      g_DlgShapeInfo.uGradientSteps       = 200 ;  
      g_DlgShapeInfo.nBorderEndCap        = PAINT_SHAPE_BORDER_ENDCAP_FLAT ;
      g_DlgShapeInfo.nRoundRectEllipseWidth = 10 ; 
      g_DlgShapeInfo.nRoundRectEllipseHeight = 10 ; 
      g_DlgShapeInfo.nOpacity                = 10;
      g_DlgShapeInfo.ppszPaperTexture        = g_ppszPaperTexture ;
      g_DlgShapeInfo.uPaperTextureCount      = 6;
      g_DlgShapeInfo.nActivePaperTextureItem = 3;
   }
   L_PntDlgShape ( hWnd, &g_DlgShapeInfo ) ;
   return ;
}