You can try CWnd::GetControlUnknown() from the control container or CCmdTarget::GetControllingUnknown() inside an ActiveX control's source(an undocumented function and may not function in future versions of MFC) My blogs: http://blog.joycode.com/jiangsheng http://blog.csdn.net/jiangsheng http://bloglines.com/public/jiangsheng Command what is yours Conquer what is not ---Kane