I have defined an OCX with Visual C++ 5.0. I can add that OCX in a Visual FoxPro form. When I click on properties from it, I can see the design I have done in C++. I can also load that OCX in MSIE. However, I would like to know how to define the main behavior of the OCX. I mean, whenever I add this control in Visual FoxPro or whenever I load it in MSIE, I see the default shape circle control. This is what I am wondering where to go in the C++ project to define the behavior of it at run time.