PAINTDLGREGIONINFO

typedef struct _PAINTDLGREGIONINFO
{
   L_INT nSize;
   L_INT32 dwFlags;
   L_TCHAR * pszTitle;
   COLORREF crUpperTolerance;
   COLORREF crLowerTolerance;
   L_INT nRoundRectEllipseWidth; 
   L_INT nRoundRectEllipseHeight; 

} PAINTDLGREGIONINFO, L_FAR *pPAINTDLGREGIONINFO ;

The PAINTDLGREGIONINFO structure contains information about the Region dialog.

Member

Description

nSize

Size of this structure.

dwFlags

User interface flags for the dialog. Determines the layout and action of the dialog. Possible values are:

 

Setting

Description

 

PAINT_DLG_REGION_SHOWALL

[0x00000001] show all controls

 

PAINT_DLG_REGION_SHOWLOWERTOLERANCE

[0x00000002] show Lower tolerance control

 

PAINT_DLG_REGION_SHOWUPPERTOLERANCE

[0x00000004] show Upper tolerance control

 

PAINT_DLG_REGION_SHOWELLIPSEWIDTH

[0x00000008] show Ellipse width control

 

PAINT_DLG_REGION_SHOWELLIPSEHEIGHT

[0x00000010] show Ellipse height control

 

PAINT_DLG_REGION_SHOWDEFAULT

[0x00000020] show Default control

 

PAINT_DLG_REGION_INITUSEDEFAULT

[0x00000040] use the initial default values for the dialog control

pszTitle

Character string containing the Dialog box caption text.

crUpperTolerance

COLORREF value that contains the amount of upper variance allowed from the selected color. Valid values are between 0 and 255. The values of R, G and B will be used to check the tolerance.

crLowerTolerance

COLORREF value that contains the amount of lower variance allowed from the selected color. Valid values are between 0 and 255. The values of R, G and B will be used to check the tolerance.

nRoundRectEllipseWidth

Value indicating the width, in pixels, of the ellipse used to create a round rectangle region. Valid values are 0 to 500.

nRoundRectEllipseHeight

Value indicating the height, in pixels, of the ellipse used to create a round rectangle region. Valid values are 0 to 500.

Comments

An image of the Region dialog can be seen below.

 

image\a4.gif