owner window and parent window  
Author Message
WRC





PostPosted: Mon Nov 15 20:49:10 CST 2004 Top

MFC >> owner window and parent window

I created a dialogbox by calling CDialog::Create(UINT nTemplate, CWnd
*pparent)by assigning CFormView pointer as parent.
In the dialog member function I calls CDialog::GetParent() and GetOwner() it
returns the same window pointer to the CMaimFrame object instead of
CFormView one. I feel like something must be wrong in my mind on owner and
parent window. Can anyone gives me some advice on that?

Visual Studio17  
 
 
Jeff





PostPosted: Mon Nov 15 20:49:10 CST 2004 Top

MFC >> owner window and parent window

> I created a dialogbox by calling CDialog::Create(UINT nTemplate, CWnd
> *pparent)by assigning CFormView pointer as parent.
> In the dialog member function I calls CDialog::GetParent() and GetOwner()
it
> returns the same window pointer to the CMaimFrame object instead of
> CFormView one. I feel like something must be wrong in my mind on owner and
> parent window. Can anyone gives me some advice on that?

http://support.microsoft.com/default.aspx?scid=kb;en-us;84190

--
Jeff Partch [VC++ MVP]