Board index » cppbuilder » Re: advise on style
Remy Lebeau (TeamB)
![]() CBuilder Developer |
Re: advise on style2004-02-21 04:49:57 AM cppbuilder41 "Benjamin Pratt" < XXXX@XXXXX.COM >wrote in message QuoteI'm not sure exactly how this will help. Can you clarify? Quote1. CreateNode does not have access to the Data member returned with the new node, the caller can fill it in however it wants. CreateNode() is only meant for creating an instance of a node class. The caller still has to fill it in. That is no different then you wanting to have an event that notifies of a new node being added, since you would still have to fill in the node yourself anyway. Quote2. The Data member is a pointer to a polymorphic type. Hence all Data Quote3. The data member points to an existing instance who's lifetime is not its Data to whatever you need. QuoteI think your suggestion of firing an OnAddition Event just QuoteI made the modifications successfully to comctrls.pas, but it your project? QuoteWould I need to staticly link instead of dynamic? |