Fix for a problem with the system color changing.

This commit is contained in:
hyatt 1998-05-01 01:26:08 +00:00
parent 24b26eda06
commit ad1904a0a4
2 changed files with 3 additions and 2 deletions

View File

@ -1571,7 +1571,8 @@ void COutliner::OnSysColorChange ( )
{
CWnd::OnSysColorChange ( );
m_pIImage->ReInitialize();
if (m_pIImage)
m_pIImage->ReInitialize();
m_pIUserImage->ReInitialize();
Invalidate ( );
}

View File

@ -1105,7 +1105,7 @@ int CRDFOutliner::DetermineClickLocation(CPoint point)
int area = point.x % iImageWidth; // Determine where within the particular level the click occurred
int left = (iImageWidth - iBarWidth) / 2;
int right = left + iBarWidth;
if (area >= left && area <= right) // Hard-code it for now.
if (area >= left && area <= right)
return CLICKED_BAR;
}