I'm dizzy, because I didn't write a summary, and I didn't want to delete all the sections I wrote. This Blog is also a great dish.
Ah, I have to try again.
Where did we go from the previous step? Oh, by the way, we need to be able to list the properties of the LiteGrid Cell object during VB editing.
First, why can't we leave it out? That's because the returned type of our Cell attribute is LPDISPATCH, that is, IDispatch *. IDispatch is a common interface and seems to have no Text or other attributes.
So it's easy to change LPDISPATCH to ICell *.
1. Open the LiteGrid. odl file and change the return type lpdispatch of the Cell attribute to ICell *
Is it okay? compile it and check whether it works. I don't know ICell *. I think most of my friends know the reason. Just define the ICell interface in advance.
2. annotate the statement
// Primary dispatch interface for CCell
Definition pulling of the starting ICell Interface
// Primary dispatch interface for CLiteGridCtrl
Front.
Compile and check.
3. in VB, try to write LiteGrid1.Cell (0, 0 ). is the Cell Object attribute listed? Although there is only one (there is only one), after writing it, run it. OK
It's easy. Well, this is just a small step. Next we will turn to the next page and move the step to the attribute page, but it's time for the next article.