summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorleo2002-12-21 19:45:42 +0000
committerleo2002-12-21 19:45:42 +0000
commitb4d27e60d73035b65fca00d911b9d8e6f00802d0 (patch)
tree3db38bf6f5c1ce6e2e67fbff38092797f960b158 /win
parent168c7cc98f87aa9e37553cbaf580743aabb6f2a5 (diff)
Fixed disabled items on XP.
git-svn-id: http://svn.leocad.org/trunk@322 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'win')
-rw-r--r--win/Bmpmenu.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/win/Bmpmenu.cpp b/win/Bmpmenu.cpp
index ca6ccc8..e056823 100644
--- a/win/Bmpmenu.cpp
+++ b/win/Bmpmenu.cpp
@@ -1323,7 +1323,8 @@ void CBMPMenu::DitherBlt2(CDC *drawdc, int nXDest, int nYDest, int nWidth, int n
// Copy the image from the toolbar into the memory DC
// and draw it (grayed) back into the toolbar.
- dc.FillSolidRect(0,0, nWidth, nHeight, GetSysColor((IsNewShell())?COLOR_3DFACE:COLOR_MENU));
+// dc.FillSolidRect(0,0, nWidth, nHeight, GetSysColor((IsNewShell())?COLOR_3DFACE:COLOR_MENU));
+ dc.FillSolidRect(0,0, nWidth, nHeight, GetSysColor(COLOR_MENU)); // Looks better on XP.
//SK: Looks better on the old shell
dc.SetBkColor(RGB(0, 0, 0));
dc.SetTextColor(RGB(255, 255, 255));
@@ -1344,6 +1345,8 @@ void CBMPMenu::DitherBlt2(CDC *drawdc, int nXDest, int nYDest, int nWidth, int n
dc.SelectObject(pdcOldBmp);
dc.DeleteDC();
+ brShadow.DeleteObject();
+ brHilight.DeleteObject();
bwbmp.DeleteObject();
}