ActiveX Properties (Drop-down List)
Posted on 1998-04-20
I am using Microsoft Visual C++ 5.0 Professional Edition. I have created an ActiveX control to display shadowed, curved, blocked, and other styles of text. One property for the control is the 'Style' property. Right now, the style property is just a 'short' that, if you enter a value which is out of range, will display a message box to notify you of what the range is and what each number does. Now, when I look at Visual Basic OCX controls (also known as ActiveX controls) I have noticed that properties like 'MousePointer' display a drop-down list that the user is then able to select a number from, instead of typing it in themselves.
I would like to know how to invoke one of these drop-down lists in the property box and I would appreciate the sample code needed to do this. The property I am dealing with is called, simply, 'Style', and the variable attached to it is 'm_style'.
Thanks in advance...