Hello everyone!!!!
I have a class with an external structure like:
I'm looking for an event handler in the class my_own_class if possibile which would fire when a variable in the struct is changed so the event would check if for example both int variables are validated as != 0 so I can change IsSettled variable to TRUE... it is possible? If yes, how I could do that in MFC?...Code:struct MY_STRUCT { int m_variable1; int m_variable2; bool m_variable3; MY_STRUCT() : m_variable1(0), m_variable2(0), m_variable3(FALSE) {} }; class my_own_class { public: my_own_class() { IsSettled = FALSE }; ~my_own_class(); public: MY_STRUCT c_struct; bool IsSettled; }
Thanks to all in advance,
Ciao
Luigi




Reply With Quote