summaryrefslogtreecommitdiff
path: root/alf/alfcombobox.cpp
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2020-05-23 15:13:42 +0200
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2020-05-23 15:15:41 +0200
commit8e41fde785e952d6b7499386b4a34c99f1d034d2 (patch)
treee3402fab508c58b774b7d8859e821cee7c155dd1 /alf/alfcombobox.cpp
parente8362729edde40cc63f045775cc1f015abb8bbb7 (diff)
combo: add hack pre-95 to color space between edit and button
Diffstat (limited to 'alf/alfcombobox.cpp')
-rw-r--r--alf/alfcombobox.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/alf/alfcombobox.cpp b/alf/alfcombobox.cpp
index a227a8d..3ce7326 100644
--- a/alf/alfcombobox.cpp
+++ b/alf/alfcombobox.cpp
@@ -285,6 +285,13 @@ ALF__ComboWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
return TRUE;
}
+ if (!ALF_Compat_IsMinWindowsVersion(4, 0)) {
+ // HACK to draw the space between edit control and button as COLOR_BTNFACE
+ if (uMsg == WM_CTLCOLORLISTBOX && priv && !(GetWindowLong(priv->hwndChild, GWL_STYLE) & 1)) {
+ return (LRESULT)GetSysColorBrush(COLOR_BTNFACE);
+ }
+ }
+
if (ALF_ShouldMessageBubble(hwnd, uMsg, wParam, lParam)) {
return SendMessage(GetParent(hwnd), uMsg, wParam, lParam);
}
@@ -329,7 +336,7 @@ ALF_InternalAddComboBox(HWND win, WORD id, int x, int y, DWORD style, const TCHA
0, 0, 0, 0,
win,
(HMENU)(ULONG_PTR)id,
- (HINSTANCE)GetWindowLongPtr(win, GWLP_HINSTANCE),
+ ALF_HINSTANCE,
&cp);
if (defaultText)