summaryrefslogtreecommitdiff
path: root/wintable/new/main.c
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-12-07 18:32:13 -0500
committerPietro Gagliardi <[email protected]>2014-12-07 18:32:13 -0500
commit04787b169a8b0078cee7e5bdaaf3c8a69559941c (patch)
treee5f9c408510c9c56031b77d6fa31eb3551353485 /wintable/new/main.c
parente373900cf00dc4416e2f31f050250986fee07693 (diff)
Altered some comments.
Diffstat (limited to 'wintable/new/main.c')
-rw-r--r--wintable/new/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wintable/new/main.c b/wintable/new/main.c
index 8c664a8..35f37b0 100644
--- a/wintable/new/main.c
+++ b/wintable/new/main.c
@@ -70,7 +70,7 @@ static LRESULT CALLBACK tableWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM
if (t == NULL) {
// we have to do things this way because creating the header control will fail mysteriously if we create it first thing
// (which is fine; we can get the parent hInstance this way too)
- // we use WM_CREATE because we have to use WM_DESTROY to destroy the header; trying to do it within WM_NCDESTROY results in DestroyWindow() failing (on wine, at least)
+ // we use WM_CREATE because we have to use WM_DESTROY to destroy the header; we can't do it in WM_NCDESTROY because Windows will have destroyed it for us by then, and let's match message pairs to be safe
if (uMsg == WM_CREATE) {
CREATESTRUCTW *cs = (CREATESTRUCTW *) lParam;
@@ -85,7 +85,7 @@ static LRESULT CALLBACK tableWndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM
if (uMsg == WM_DESTROY) {
printf("destroy\n");
// TODO free appropriate (after figuring this part out) components of t
- // TODO send DESTROY events to accessibility listeners (when appropriate)
+ // TODO send EVENT_OBJECT_DESTROY events to accessibility listeners (when appropriate); see the note on proxy objects as well
destroyHeader(t);
tableFree(t, "error allocating internal Table data structure");
return DefWindowProcW(hwnd, uMsg, wParam, lParam);