Article ID: 191872
Article Last Modified on 7/16/2004
typedef enum tagLineStyleConstants
{
[helpstring("Solid")] lsSolid = 0,
[helpstring("Dash")] lsDash = 1,
[helpstring("Dot")] lsDot = 2,
[helpstring("Dash-Dot")] lsDashDot = 3,
[helpstring("Dash-Dot-Dot")] lsDashDotDot = 4,
} LineStyleConstants;
....
properties:
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CEnumCtrl)
[id(1)] LineStyleConstants LineStyle;
//}}AFX_ODL_PROP
When the ActiveX control has been sited on a form in Visual Basic 4.0, you
can see that the value of the LineStyle property, when viewed from the
Properties Window, is composed of all the HelpStrings of the Enum type. It
looks similar to the following:
0 - Solid
1 - Dash
2 - Dot
3 - Dash-Dot
4 - Dash-Dot-Dot
0 - lsSolid
1 - lsDash
2 - lsDot
3 - lsDashDot
4 - lsDashDotDot
141488 SAMPLE: Using Enumerated Properties in an OLE Control
typedef enum tagLineStyleConstants
{
[helpstring("Solid")] lsSolid = 0,
[helpstring("Dash")] lsDash = 1,
[helpstring("Dot")] lsDot = 2,
[helpstring("Dash-Dot")] lsDashDot = 3,
[helpstring("Dash-Dot-Dot")] lsDashDotDot = 4,
} LineStyleConstants;
// NOTE - ClassWizard will maintain property information here.
// Use extreme caution when editing this section.
//{{AFX_ODL_PROP(CEnumTestCtrl)
[id(1)] LineStyleConstants LineStyle;
//}}AFX_ODL_PROP
Additional query words: kbDSupport kbDSD kbVBp kbVBp400 kbVBp500 kbVBp600 kbCtrlCreate kbVC500 kbWizard
Keywords: kbprb KB191872