diff options
Diffstat (limited to 'alf/alfcombobox.cpp')
| -rw-r--r-- | alf/alfcombobox.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/alf/alfcombobox.cpp b/alf/alfcombobox.cpp index efe3706..bf64cb9 100644 --- a/alf/alfcombobox.cpp +++ b/alf/alfcombobox.cpp @@ -112,9 +112,9 @@ ALF__ComboWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) return SendMessage(hwndChild, CB_GETCURSEL, wParam, lParam); } if ((uMsg == ALF_CB_SETCURSEL || uMsg == CB_SETCURSEL) && hwndChild) { - LRESULT curSel = SendMessage(hwndChild, CB_GETCURSEL, wParam, lParam); + LRESULT curSel = SendMessage(hwndChild, CB_GETCURSEL, 0, 0); if ((WPARAM)curSel != wParam) { - LRESULT newSel = SendMessage(hwndChild, CB_SETCURSEL, wParam, lParam); + LRESULT newSel = SendMessage(hwndChild, CB_SETCURSEL, wParam, 0); SendMessage(hwnd, WM_COMMAND, MAKEWPARAM(GetWindowLong(hwndChild, GWL_ID), CBN_SELCHANGE), (LPARAM)hwndChild); return newSel; } @@ -272,12 +272,7 @@ ALF_RegisterComboClass(void) cls.hInstance = ALF_HINSTANCE; cls.hCursor = LoadCursor(NULL, (LPTSTR)IDC_ARROW); - if (LOBYTE(LOWORD(GetVersion())) >= 4) { - cls.hbrBackground = (HBRUSH)(COLOR_BTNFACE+1); - } else { - // NT 3.x has white dialog backgrounds - cls.hbrBackground = (HBRUSH)(COLOR_WINDOW+1); - } + cls.hbrBackground = (HBRUSH)(COLOR_BTNFACE+1); cls.lpszClassName = classNameBuf; cls.cbWndExtra = sizeof(void*); cls.lpfnWndProc = ALF__ComboWindowProc; |
