titanandrews
Programmer
Hello all,
I have an object which contains some significant properties that a modeless CDialog needs to know about as soon as they are changed. These properties are modified via the main frame. I would like to know what is the best approach to notifying the CDialog of the changes. I experimented with overriding OnChildNotify() in the CDialog, because it get's called automatically by the parent window. Then in this function I just check the property to see if it has changed. It works fine, but this means that the property is checked every time this function is called, which is a alot. I would rather send a message from the property object to the CDialog and set up some sort of message handler to receive this notification. Not sure where to start. Can someone please give me some ideas?
many thanks,
Barry
I have an object which contains some significant properties that a modeless CDialog needs to know about as soon as they are changed. These properties are modified via the main frame. I would like to know what is the best approach to notifying the CDialog of the changes. I experimented with overriding OnChildNotify() in the CDialog, because it get's called automatically by the parent window. Then in this function I just check the property to see if it has changed. It works fine, but this means that the property is checked every time this function is called, which is a alot. I would rather send a message from the property object to the CDialog and set up some sort of message handler to receive this notification. Not sure where to start. Can someone please give me some ideas?
many thanks,
Barry