L_PntDlgRegion
#include "ltpdg.h"
L_INT EXT_FUNCTION L_PntDlgRegion(hWnd, pRegionDlgInfo)
HWND hWnd; |
/*owner of the dialog */ |
pPAINTDLGREGIONINFO pRegionDlgInfo; |
/* pointer to a structure */ |
Brings up the region properties dialog box.
Parameter |
Description |
hWnd |
Handle of the window that owns the dialog. |
pRegionDlgInfo |
Pointer to a PAINTDLGREGIONINFO structure that contains region information. The values present in pRegionDlgInfo when the function is called are used to initialize the dialog, if PAINT_DLG_REGION_INITUSEDEFAULT is not set in the dwFlags member of pRegionDlgInfo. 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
Example
// This example will display the Region common dialog
PAINTDLGREGIONINFO g_DlgRegionInfo ;
L_VOID RegionDlgTest ( HWND hWnd, L_BOOL fUseDef )
{
if ( fUseDef == TRUE )
{
g_DlgRegionInfo.dwFlags = PAINT_DLG_REGION_SHOWALL | PAINT_DLG_REGION_INITUSEDEFAULT ;
}
else
{
g_DlgRegionInfo.nSize = sizeof ( PAINTDLGREGIONINFO ) ;
g_DlgRegionInfo.dwFlags = PAINT_DLG_REGION_SHOWLOWERTOLERANCE |
PAINT_DLG_REGION_SHOWUPPERTOLERANCE |
PAINT_DLG_REGION_SHOWELLIPSEWIDTH |
PAINT_DLG_REGION_SHOWELLIPSEHEIGHT ;
g_DlgRegionInfo.pszTitle = TEXT("Lead Region Common Dialog ") ;
g_DlgRegionInfo.crLowerTolerance = RGB ( 10, 10, 10 ) ;
g_DlgRegionInfo.crUpperTolerance = RGB ( 10, 10, 10 ) ;
g_DlgRegionInfo.nRoundRectEllipseWidth = 20 ;
g_DlgRegionInfo.nRoundRectEllipseHeight = 20 ;
}
L_PntDlgRegion ( hWnd, &g_DlgRegionInfo ) ;
return ;
}