DISPCONTAINERPROPERTIES

typedef struct tagDISPCONTAINERPROPERTIES
{
   L_UINT uStructSize;
   L_UINT uMask;
   L_UINT uMask1;
   L_UINT uNumRows;
   L_UINT uNumCols;
   COLORREF crEmptyCellBackGroundColor;
   COLORREF crBackground;
   COLORREF crText;
   COLORREF crShadow;
   COLORREF crRulerIn;
   COLORREF crRulerout;
   COLORREF crActiveBorderColor;
   COLORREF crNonActiveBorderColor;
   COLORREF crActiveSubCellBorderColor;
   HCURSOR hDefaultCursor;
   HCURSOR hRszVertCursor;
   HCURSOR hRszHorzCursor;
   HCURSOR hRszBothCursor;
   L_BOOL bAutoScroll;
   L_UINT uRulerStyle;
   L_UINT uCellsMaintenance;
   L_BOOL bShowFreezeText;
   L_UINT uBorderStyle;
   L_UINT uTextQuality;
} DISPCONTAINERPROPERTIES, L_FAR * pDISPCONTAINERPROPERTIES;

The DISPCONTAINERPROPERTIES structure contains the options for controlling the behavior of the container. This structure is available only in the Medical Imaging Suite toolkits.

Member

Description

uStructSize

Size of this structure in bytes, for versioning. Use the sizeof() macro to calculate this value.

uMask

Value that indicates which members contains valid data for setting, or which members should be updated. Flags can be combined using the bitwise 'OR. Possible values are:

 

Value

Meaning

 

DCPF_ALL

[0x001FFFFF] All members must be valid or must be filled in.

 

DCPF_NUMROWS

[0x00000001] The uNumRows member is valid or must be filled in.

 

DCPF_NUMCOLS

[0x00000002] The uNumCols member is valid or must be filled in.

 

DCPF_EMPTYCELLBACKGROUNDCOLOR

[0x00000004] The crEmptyCellBackGroundColor member is valid or must be filled in.

 

DCPF_BACKGROUNDCOLOR

[0x00000008] The crBackGroundColor member is valid or must be filled in.

 

DCPF_TEXTCOLOR

[0x00000010] The crText member is valid or must be filled in.

 

DCPF_SHADOWCOLOR

[0x00000020] The crShadow member is valid or must be filled in.

 

DCPF_RULERINCOLOR

[0x00000040] The crRulerIn member is valid or must be filled in.

 

DCPF_RULEROUTCOLOR

[0x00000080] The rcRulerOut member is valid or must be filled in.

 

DCPF_ACTIVEBORDERCOLOR

[0x00000100] The crActiveBorderColor member is valid or must be filled in.

 

DCPF_NONACTIVEBORDERCOLOR

[0x00000200] The crNonActiveBorderColor member is valid or must be filled in.

 

DCPF_ACTIVESUBCELLBORDERCOLOR

[0x00000400] The crActiveSubCellBorderColor member is valid or must be filled in.

 

DCPF_DEFAULTCURSOR

[0x00000800] The hDefaultCursor member is valid or must be filled in.

 

DCPF_VERTCURSOR

[0x00001000] The hRszVertCursor is valid or must be filled in.

 

DCPF_HORZCURSOR

[0x00002000] The hRszHorzCursor is valid or must be filled in.

 

DCPF_BOTHCURSOR

[0x00004000] The hRszBothCursor is valid or must be filled in.

 

DCPF_AUTOSCROLL

[0x00008000] The bAutoScroll member is valid or must be filled in.

 

DCPF_CELLSMAINTENANCE

[0x00010000] The uCellsMaintenance is valid or must be filled in.

 

DCPF_SHOWFREEZETEXT

[0x00020000] The bShowFreezText is valid or must be filled in.

 

DCPF_BORDERSTYLE

[0x00040000] The uBorderStyle member is valid or must be filled in.

 

DCPF_TEXTQUALITY

[0x00080000] The uTextQuality member is valid or must be filled in.

 

DCPF_RULERSTYLE

[0x00100000] The uRulerStyle member is valid or must be filled in.

uMask1

Reserved for future use. Must be zero.

uNumRows

Number of rows in the container. The default value is 1.

uNumCols

Number of columns in the container. The default value is 1.

crEmptyCellBackGroundColor

Background color to display in empty cells. The default color is black.

crBackground

Background color to display in non-empty cells. The default color is black.

crText

Text color. The default color is white.

crShadow

Shadow’s color. The default color is black.

crRulerin

Ruler-in color. The default color is white.

crRulerout

Ruler-out color. The default color is blue.

crActiveBorderColor

Color of the border used to designate a selected cell. The default color is RGB(255, 192, 0).

crNonActiveBorderColor

Color of the border used to designate an unselected cell. The default color is white.

crActiveSubCellBorderColor

Color of the border used to designate a selected sub cell. The default color is yellow.

hDefaultCursor

Default cursor for the container. The default value is IDC_ARROW.

hRszVertCursor

Default cursor for resizing vertically. The default value is IDC_SIZENS.

hRszHorzCursor

Default cursor for resizing horizontally. The default value is IDC_SIZEWE.

hRszBothCursor

Default cursor for resizing horizontally and vertically. The default value is IDC_SIZEBOTH.

 

uRulerStyle

Flag that indicates the style of the rulers in the cells of the container. Possible values are:

 

Value

Meaning

 

DCPF_RULERSTYLE_INVERT

[0x00000000] The ruler is drawn using an inverted pen. This is the default value.

 

DCPF_RULERSTYLE_BORDERED

[0x00000001] The ruler is drawn using both the pen specified in crRulerout and crRulerin.

uCellsMaintenance

Flag that indicates whether to maintain, if possible, cell size or cell position. Possible values are:

 

Value

Meaning

 

DCPF_CELLSMAINTENANCE_SIZE

[0x00000000] Maintain cell size, if possible. This is the default value.

 

DCPF_CELLSMAINTENANCE_POS

[0x00000001] Maintain cell position.

 

bShowFreezText

Flag that indicates whether to display the word "Freeze" on frozen cells. Possible values are:

 

Value

Meaning

 

TRUE

Display the word "Freeze" on frozen cells. This is the default value.

 

FALSE

Do not display the word "Freeze" on frozen cells.

 

uBorderStyle

Flags that determine the style of the border. Possible values are:

 

Value

Meaning

 

PS_SOLID

[0x00000000] Solid border.

 

PS_DASH

[0x00000001] Dashed border.

 

PS_DOT

[0x00000002] Dotted border. This is the default value.

 

PS_DASHDOT

[0x00000003] Dash and dot border.

 

PS_DASHDOTDOT

[0x00000004] Dash and two dots border.

uTextQuality

Flags that determine the quality of the text and whether it is anti-aliased. Possible values are:

 

Value

Meaning

 

DEFAULT_QUALITY

[0x00000000] Default quality.

 

DRAFT_QUALITY

[0x00000001] Draft quality.

 

PROOF_QUALITY

[0x00000002] Proof quality.

 

NONANTIALIASED_QUALITY

[0x00000003] Forces use of draft quality.

 

ANTIALIASED_QUALITY

[0x00000004] Enables anti-aliasing for the font.

Comments

This structure is used by the L_DispContainerSetProperties and the L_DispContainerGetProperties functions.