SIZE CCustomizeButton::OnCalculateSize (CDC* /*pDC*/, const CSize& sizeDefault, BOOL bHorz)
{
if (m_bIsEmpty)
{
return CSize (0, 0);
}
if (m_strText.IsEmpty ())
{
CBCGPLocalResource locaRes;
m_strText.LoadString (IDS_BCGBARRES_TOOLBAR_OPTIONS);
ASSERT (!m_strText.IsEmpty ());//此处出现问题
}
......
}
在此处m_strText为空,应该和之前在InitInstance()中加m_bSaveState = false;(防止写注册表)有关,但删除后仍然出现问题,而用BCG8版本则没有问题,还需要继续观察