Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I reference a UserControl from its subclassing module?

0
Posted

How do I reference a UserControl from its subclassing module?

0

• You must create a reference to the object. There is a KB article that shows how to do this. If you are subclassing the user control, the method they use to reference the object (storing the vtable object pointer in the GWL_USERDATA area of the user control) is fine. If you are subclassing something else, like the user control’s parent, then use the registry to store that info since something else might be stored in the GWL_USERDATA. Also, if you expose an hWnd to the parent, note that it is possible for the consumer to overwrite the GWL_USERDATA area. The article is: Q179398 – How to subclass a UserControl. • Also check out some of my republished articles. I use various control subclassing techniques in them.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123