diff options
| author | Pietro Gagliardi <[email protected]> | 2015-02-14 14:15:51 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-02-14 14:17:47 -0500 |
| commit | 3ce7a68754d58a1d6aed2b45d350a14270286e4e (patch) | |
| tree | 12e580ecddc6b2be189dbae573755352f4a71725 /wintable/main.h | |
| parent | b10ec3d8c231a02b053031954ba9058202f6e49c (diff) | |
Changed the Table accessibility objects to be a doubly linked list; updated the Table code itself appropriately. Implemented RPC_E_DISCONNECTED handlers as well. Will test now.
Diffstat (limited to 'wintable/main.h')
| -rw-r--r-- | wintable/main.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/wintable/main.h b/wintable/main.h index 235467b..ee3e31a 100644 --- a/wintable/main.h +++ b/wintable/main.h @@ -100,7 +100,7 @@ struct table { BOOL checkboxMouseDown; intptr_t checkboxMouseDownRow; intptr_t checkboxMouseDownColumn; - struct tableAcc *ta; + struct tableAcc *firstAcc; }; // forward declaration (TODO needed?) @@ -163,7 +163,6 @@ static LRESULT CALLBACK tableWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM t->selectedRow = -1; t->selectedColumn = -1; loadCheckboxThemeData(t); - t->ta = newTableAcc(t); initDummyTableStuff(t); SetWindowLongPtrW(hwnd, GWLP_USERDATA, (LONG_PTR) t); } @@ -174,8 +173,7 @@ initDummyTableStuff(t); printf("destroy\n"); // TODO free appropriate (after figuring this part out) components of t // TODO send EVENT_OBJECT_DESTROY events to accessibility listeners (when appropriate); see the note on proxy objects as well - freeTableAcc(t->ta); - t->ta = NULL; + invalidateTableAccs(t); freeCheckboxThemeData(t); destroyHeader(t); tableFree(t, "error allocating internal Table data structure"); |
