diff options
Diffstat (limited to 'alf/alf.cpp')
| -rw-r--r-- | alf/alf.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/alf/alf.cpp b/alf/alf.cpp index 9f68479..03c0fbf 100644 --- a/alf/alf.cpp +++ b/alf/alf.cpp @@ -571,23 +571,6 @@ ALF_DefWindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) return TRUE; } - if (msg == WM_CTLCOLORSTATIC) { - HDC hdcStatic = (HDC)wparam; - HWND hwndStatic = (HWND)lparam; - - // HACK! return correct label background for NT3.x and NT4/95 - // get rid of this once we fixed the label to draw on the parent control background - if (LOBYTE(LOWORD(GetVersion())) < 4) { - SetTextColor(hdcStatic, GetSysColor(IsWindowEnabled(hwndStatic) ? COLOR_WINDOWTEXT : COLOR_GRAYTEXT)); - SetBkColor(hdcStatic, GetSysColor(COLOR_WINDOW)); - return (LRESULT)GetSysColorBrush(COLOR_WINDOW); - } else { - SetTextColor(hdcStatic, GetSysColor(IsWindowEnabled(hwndStatic) ? COLOR_BTNTEXT : COLOR_GRAYTEXT)); - SetBkColor(hdcStatic, GetSysColor(COLOR_BTNFACE)); - return (LRESULT)GetSysColorBrush(COLOR_BTNFACE); - } - } - return DefWindowProc(hwnd, msg, wparam, lparam); } |
