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.
This commit is contained in:
parent
79c97996b3
commit
1c5f09d49e
|
@ -15,7 +15,6 @@ static LRESULT CALLBACK tableSubProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM
|
||||||
case msgNOTIFY:
|
case msgNOTIFY:
|
||||||
switch (nmhdr->code) {
|
switch (nmhdr->code) {
|
||||||
case LVN_GETDISPINFO:
|
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));
|
tableGetCellText((void *) data, fill->item.iItem, fill->item.iSubItem, &(fill->item.pszText));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue