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:
parent
a9f9424d30
commit
4d8ca6df3a
@ -1571,7 +1571,8 @@ void COutliner::OnSysColorChange ( )
|
||||
{
|
||||
|
||||
CWnd::OnSysColorChange ( );
|
||||
m_pIImage->ReInitialize();
|
||||
if (m_pIImage)
|
||||
m_pIImage->ReInitialize();
|
||||
m_pIUserImage->ReInitialize();
|
||||
Invalidate ( );
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user