I have an ActiveX control in which I would like to place CNiGraph control, but when I'm dragging it from toolbox to my dialog box (style: child,border: none) and try to debug it, then it crashes and jumps over here:
//winocc.cpp
BOOL CWnd::ShowWindow(int nCmdShow)
{
ASSERT(::IsWindow(m_hWnd) || (m_pCtrlSite != NULL));
if (m_pCtrlSite == NULL)
return ::ShowWindow(m_hWnd, nCmdShow);
else
return m_pCtrlSite->ShowWindow(nCmdShow);
}
And it crashes on the line ASSERT(::IsWindow(m_hWnd) || (m_pCtrlSite != NULL)); I think that's becouse CNiGraph is not a window?