completlely desesperated, because I dont find the error. Need some advice.
What I try:
Derive a class on CHtmlview.
and create a window with it on a dialog form.
It seems that the create function is bad, because every time if I close the dialog
or call DestroyWindow the whole thing chrashes...
I called the Create like this in OnInitDialog
1 2 3 4 5 6 7 8
//to get the location ...
CWnd* pw = GetDlgItem(IDC_STATIC_PICTURE);
pw->GetWindowRect(&rc);
ScreenToClient(&rc);
LPCTSTR lps = AfxRegisterWndClass(0);
BOOL b = m_pmyhtmlviev->Create(lps,"WINDOWNAME", WS_VISIBLE|WS_CHILD|WS_HSCROLL, rc,this,0,0);
this is the header of the derived class - constructor public