Added tableNotificationSelectionChanged on the Windows Table and hooked it up to package ui's Table.
This commit is contained in:
parent
7392dca627
commit
6b9f1f282f
|
@ -30,7 +30,9 @@ static LRESULT CALLBACK tableSubProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM
|
||||||
case tableNotificationCellCheckboxToggled:
|
case tableNotificationCellCheckboxToggled:
|
||||||
tableToggled(gotable, tnm->row, tnm->column);
|
tableToggled(gotable, tnm->row, tnm->column);
|
||||||
return 0;
|
return 0;
|
||||||
// TODO selection changed
|
case tableNotificationSelectionChanged:
|
||||||
|
tableSelectionChanged(gotable);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam);
|
return (*fv_DefSubclassProc)(hwnd, uMsg, wParam, lParam);
|
||||||
/* TODO
|
/* TODO
|
||||||
|
|
|
@ -40,6 +40,10 @@ enum {
|
||||||
// data is zero
|
// data is zero
|
||||||
// no return
|
// no return
|
||||||
tableNotificationCellCheckboxToggled,
|
tableNotificationCellCheckboxToggled,
|
||||||
|
// sent even on deselection (in that case, row == -1 and column == -1)
|
||||||
|
// data is zero
|
||||||
|
// no return
|
||||||
|
tableNotificationSelectionChanged,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct tableNM tableNM;
|
typedef struct tableNM tableNM;
|
||||||
|
|
|
@ -105,6 +105,9 @@ noScroll:
|
||||||
NotifyWinEvent(EVENT_OBJECT_SELECTION, t->hwnd, OBJID_CLIENT, t->selectedRow);
|
NotifyWinEvent(EVENT_OBJECT_SELECTION, t->hwnd, OBJID_CLIENT, t->selectedRow);
|
||||||
// TODO send EVENT_OBJECT_STATECHANGED too?
|
// TODO send EVENT_OBJECT_STATECHANGED too?
|
||||||
// TODO send EVENT_OBJECT_FOCUS
|
// TODO send EVENT_OBJECT_FOCUS
|
||||||
|
|
||||||
|
// TODO before or after NotifyWinEvent()? (see what other things I'm doing)
|
||||||
|
notify(t, tableNotificationSelectionChanged, t->selectedRow, t->selectedColumn, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO make this needless
|
// TODO make this needless
|
||||||
|
|
Loading…
Reference in New Issue