MFC --- How to access a parents variable
Posted on 2009-04-17
I'm working on a mfc application, where a parent dialog creates a child dialog as a ui thread. Unfortunately I'm having problems in knowing quite how to access this variable. I need to access the variable as it updates. It is updated through the functions "ON_TIMER" from the parent dialog.
What I'm thinking the easiest way to do what I need to acheive would be to somehow pass the current time variable to the child dialog, and then update it using an "ON_TIMER" function from within the child dialog.
I'm a little confused as to how to do this though.
At the simplest terms what i need to do is,
Check a user entered variable in the child dialog against a time variable in the parent dialog.
Any help would be very very much appreciated!!