Getting a base class pointer (parent) in a base-derived (child) class object?
<p>So I have this class (the parent) that creates a dialog box and fills it with controls. Within that class is another class (the child) that creates a timer that links/passes a function call to an event system to update the contents of some of the controls at regular intervals. The problem comes from the timer update function needing to know the objects it needs to update.</p>

<p>I would like to simply pass the pointer of the base class to the child some how in a way that it's all self contained. But I can't figure out a way to make that happen. Anyone have any ideas?</p>

<p>I've searched for answers but all I got was accessing variables from inside the base class from within the child class. That would work but it seems unnecessary to fire an event for every individual control... (I guess I could create all the controls in an structure but that seems unnecessary)</p>

<p>the nested classes look a bit like this:</p>

<pre><code>class CreateDialog{
    class timer{
    }
}
</code></pre>
