在程序运行过程中,拖动菜单栏,引起了程序崩溃,触发下面的断言(代码如下):
void CWnd::ScreenToClient(LPRECT lpRect) const
{
ASSERT(::IsWindow(m_hWnd));
::ScreenToClient(m_hWnd, (LPPOINT)lpRect);
::ScreenToClient(m_hWnd, ((LPPOINT)lpRect)+1);
if (GetExStyle() & WS_EX_LAYOUTRTL)
CRect::SwapLeftRight(lpRect);
}
断点停留在了“::ScreenToClient(m_hWnd, (LPPOINT)lpRect);”,请问大侠是什么原因。