From 172c48435698be5eeb8e7b6c306114ce8050dca8 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 17 Aug 2014 19:24:42 -0400 Subject: [PATCH] Fixed Windows Table checkboxes on Windows XP. --- redo/table_windows.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/redo/table_windows.c b/redo/table_windows.c index e2acbc9..106d159 100644 --- a/redo/table_windows.c +++ b/redo/table_windows.c @@ -117,4 +117,7 @@ void tableSetCheckboxImageList(HWND hwnd) if (SendMessageW(hwnd, LVM_SETIMAGELIST, LVSIL_STATE, (LPARAM) checkboxImageList) == (LRESULT) NULL) ;//TODO xpanic("error setting image list", GetLastError()); // TODO free old one here if any/different + // thanks to Jonathan Potter (http://stackoverflow.com/questions/25354448/why-do-my-owner-data-list-view-state-images-come-up-as-blank-on-windows-xp) + if (SendMessageW(hwnd, LVM_SETCALLBACKMASK, LVIS_STATEIMAGEMASK, 0) == FALSE) + xpanic("error marking state image list as application-managed", GetLastError()); }