Fixed a typo in tableimages.cpp. Okay, so the code I had before worked purely by accident, and this code doesn't. Wonderful...
This commit is contained in:
parent
8f0019af10
commit
0f89418a95
|
@ -170,8 +170,8 @@ HRESULT uiprivNM_CUSTOMDRAWImagesCheckboxes(uiTable *t, NMLVCUSTOMDRAW *nm, LRES
|
||||||
}
|
}
|
||||||
// the real listview also does this :|
|
// the real listview also does this :|
|
||||||
ZeroMemory(&cellRect, sizeof (RECT));
|
ZeroMemory(&cellRect, sizeof (RECT));
|
||||||
r.left = LVIR_BOUNDS;
|
cellRect.left = LVIR_BOUNDS;
|
||||||
r.top = nm->iSubItem;
|
cellRect.top = nm->iSubItem;
|
||||||
if (SendMessageW(t->hwnd, LVM_GETSUBITEMRECT, nm->nmcd.dwItemSpec, (LPARAM) (&cellRect)) == 0) {
|
if (SendMessageW(t->hwnd, LVM_GETSUBITEMRECT, nm->nmcd.dwItemSpec, (LPARAM) (&cellRect)) == 0) {
|
||||||
logLastError(L"LVM_GETSUBITEMRECT cell");
|
logLastError(L"LVM_GETSUBITEMRECT cell");
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
Loading…
Reference in New Issue