Fixed click to select for the header bar.
This commit is contained in:
parent
b4695182de
commit
0dd4a07456
|
@ -127,6 +127,7 @@ static void selectItem(struct table *t, WPARAM wParam, LPARAM lParam)
|
||||||
y = GET_Y_LPARAM(lParam);
|
y = GET_Y_LPARAM(lParam);
|
||||||
h = rowHeight(t);
|
h = rowHeight(t);
|
||||||
y += t->firstVisible * h;
|
y += t->firstVisible * h;
|
||||||
|
y -= t->headerHeight;
|
||||||
y /= h;
|
y /= h;
|
||||||
t->selected = y;
|
t->selected = y;
|
||||||
if (t->selected >= t->count)
|
if (t->selected >= t->count)
|
||||||
|
|
Loading…
Reference in New Issue