我用vb写的控件(随便写一个都这样),在vc的dialog里是可以正常加载的,可是在vc的view中加载时,我仿照在view中加载其他控件的方法,在view的oncreate方法中写如下代码
BOOL CTestvbView::Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext) 
{
// TODO: Add your specialized code here and/or call the base class

 CWnd::Create(lpszClassName, lpszWindowName, dwStyle, rect, pParentWnd, nID, pContext);
 mycontrol.Create(NULL,WS_VISIBLE,CRect(50,0,100,100),this,0);
 return true;
}
运行后vb控件闪了一下就没了(我把vb控件设了颜色),而如果把
mycontrol.Create(NULL,WS_VISIBLE,CRect(50,0,100,100),this,0);
中的this改为pParentWnd则可显示在工具栏那儿,为什么啊?