Uninitialized parent members
-
I have a dialog that I invoke with a button press on a Propertypage. From within the Dialog I want to acces certain propertypage member variables. This is the way I do it.
m_List = ((CParameterPage*) GetParent())->m_ParList;
But it seems that all variables I acces are uninitialized eventhough they have correct values before I invoke the dialog! What am I doing wrong? -
I have a dialog that I invoke with a button press on a Propertypage. From within the Dialog I want to acces certain propertypage member variables. This is the way I do it.
m_List = ((CParameterPage*) GetParent())->m_ParList;
But it seems that all variables I acces are uninitialized eventhough they have correct values before I invoke the dialog! What am I doing wrong?Actually, a dialog invoked from property page isn't a child window. So you can't use GetParent; add the pointer as a memmber of CYourDialog class. If you only need to access the list, add the pointer/reference to the list instead. Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
-
Actually, a dialog invoked from property page isn't a child window. So you can't use GetParent; add the pointer as a memmber of CYourDialog class. If you only need to access the list, add the pointer/reference to the list instead. Tomasz Sowinski -- http://www.shooltz.com
** Putt knot yore thrust inn spel chequers. **
Thank you, And the compiler couldn't tell me that:) Arjan. If every fool wore a crown, we would all be king - Lard