程序在这里中断ASSERT(::IsWindow(m_hWnd));ASSERT(pWnd != NULL);
uukko 2011-10-13 02:59:46 如题,程序在这里中断了,查了下因为是未创建窗口,谁能帮我看看代码,到底是怎么回事儿呢?
不知道在什么地方找到这个语句~~
在调试的时候提示我说
mfc90d.dll!CToolTipCtrl::AddTool(CWnd * pWnd=0x00000000, const char * lpszText=0xffffffff, const tagRECT * lpRectTool=0x00000000, unsigned int nIDTool=0) 行139 + 0x19 字节 C++
是不是CToolTipCtrl ::AddTool这里没有创建窗口呢?
查了下 程序中是这样定义的
CRichToolTipCtrl m_tip;
m_tip.Create(this);
// these controls get their tip text from the callback
m_tip.AddTool(GetDlgItem(IDOK));
m_tip.AddTool(&m_richedit_showmsg);
m_tip.AddTool(&m_richedit_msg);
这样是不是已经创建了一个窗口了呢?!