Fix for a problem with the system color changing.

git-svn-id: svn://10.0.0.236/trunk@962 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hyatt 1998-05-01 01:26:08 +00:00
parent a9f9424d30
commit 4d8ca6df3a
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;
}