ActiveX control passing structure/object
Posted on 2002-04-25
I've written an activeX control which basically draws a grid, each cell within the grid has about 20 properties, i.e. borderwidth/textsize/colour etc...
At the moment I have each property as a property of the control, and whatever is changed applies to the currently selected cell.
I use this control in VB.
What I want to do is either one of the following...
Create a 'type' in VB and pass it in as a paramemer along with the x and y coordinates of the cell, this will then be received in c++ as a struct, and I can update the properties of the appropriate cell.
Create an additional class in the activex control, which is called 'cell' or something. And pass this object between the calling application and the control. (just like the way a treeview does with nodes, or a listview does with listitems)
I've tried doing both of these, but with no luck. Can someone give me some pointers please.