Home > Software engineering >  Questions about ActiveX custom properties
Questions about ActiveX custom properties

Time:11-02

Contact with MFC ActiveX recently and want to write a custom attribute of the ActiveX, in c # Winform calls ocx controls, literacy controls the custom properties,
According to the online tutorials, libraries in "class view" control node (the second node library node), add a way to add an attribute,
Then in the control file DoPropExchange method the persistence code to add attributes:
PX_String (pPX, _T (" Testabc), m_Testabc, _T (" Testabc "));//Testabc for attribute name

But the problem is coming, in c # Winform into ocx controls, control, no I just defined properties Testabc,
Want to ask, this way is correct? How can I achieve the ActiveX custom properties made public?

CodePudding user response:

No man or woman? First aid!
  • Related