From 1c5f09d49e034000ffb9a845a6f19c8db6507b75 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 13 Aug 2014 15:19:18 -0400 Subject: [PATCH] Removed TODO about using LVITEM memory for Tables on Windows. I would still need to do a UTF-16 conversion on the Go side, and it seems I can't do that to an already-available buffer (it can only be done to a freshly-allocated one). Not even with unicode/utf16. --- redo/table_windows.c | 1 - 1 file changed, 1 deletion(-) diff --git a/redo/table_windows.c b/redo/table_windows.c index 5d24164..a005600 100644 --- a/redo/table_windows.c +++ b/redo/table_windows.c @@ -15,7 +15,6 @@ static LRESULT CALLBACK tableSubProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM case msgNOTIFY: switch (nmhdr->code) { case LVN_GETDISPINFO: - /* TODO we could probably copy into the buffer provided by the list view control instead... see LVITEM's docs */ tableGetCellText((void *) data, fill->item.iItem, fill->item.iSubItem, &(fill->item.pszText)); return 0; }