Captrick458
Programmer
If I run GetSafeOwner(NULL,NULL) in a dialog, it returns a value. If from that dialog, I call a DLL with
someclass.myfunction(this,dialog), and in that DLL I call
where pParent is the value of "this"
pParent->GetSafeOwner(NULL,NULL); it returns a totally different value. I can fix it by using
pParent->GetSafeOwner(pParent,NULL);
It is not a problem to do this, I just want to understand why it is so.
I am using the value to disable the parent window for a modal dialog box. I can't use domodal because the entire contents of the modal dialog change based on what has come before.
If someone can explain this, I would really appreciate it.
Thanks in advance, Rick
someclass.myfunction(this,dialog), and in that DLL I call
where pParent is the value of "this"
pParent->GetSafeOwner(NULL,NULL); it returns a totally different value. I can fix it by using
pParent->GetSafeOwner(pParent,NULL);
It is not a problem to do this, I just want to understand why it is so.
I am using the value to disable the parent window for a modal dialog box. I can't use domodal because the entire contents of the modal dialog change based on what has come before.
If someone can explain this, I would really appreciate it.
Thanks in advance, Rick