|
-
March 30th, 1999, 11:37 PM
#1
Can anyone help me?
Hi,Guru:
I created an invisible ActiveX control with VC++.The question is that when I use the CWnd::GetParent(),the handle I get is not the control's parent at all.But the situation is not like that if the activex is visible at its runtime.How could I get the parent property of an invisible activex control in VC++?
Thanks lots!
ShineSoft Free ActiveX Components by Yu weidong
-
March 31st, 1999, 01:21 AM
#2
Re: Check Article ID:Q150204
Hi.
Check this.
HOWTO: Retrive the Actual Parent Widnow of An ActiveX control
ID: Q150204 by MSDN Help.
HWND CMyOleControl::GetActualParent()
{
HWND hwndParent = 0;
if(m_pInPlaceSite != NULL)
m_pInPlaceSite->GetWindow(&hwndParent);
return hwndParent;
}
Hope for help.
-Masaaki Onishi-
-
March 31st, 1999, 04:22 AM
#3
Re: Check Article ID:Q150204
Hi,thank you very much!
I would have a check.Tommorrow I would give you the result.
regards!
-
March 31st, 1999, 08:48 PM
#4
Thank you very much!
Hello,Mr Masaaki Onishi:
Thank you very much for your advice.I had success ussing
the code you provided.
Best wishes!
Yu weidong
ShineSoft Free ActiveX Components by Yu weidong
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|