summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)