Mercurial > dwindows
diff os2/dw.c @ 311:24c1dfffe97e
Unified the callback functions for tree and container widgets.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 31 Mar 2003 09:57:45 +0000 |
parents | 77105fe19c1f |
children | 41b890c649e7 |
line wrap: on
line diff
--- a/os2/dw.c Mon Mar 31 09:18:00 2003 +0000 +++ b/os2/dw.c Mon Mar 31 09:57:45 2003 +0000 @@ -2147,16 +2147,12 @@ if(pci && pre->fEmphasisMask & CRA_CURSORED && (pci->rc.flRecordAttr & CRA_CURSORED)) { + int (* API treeselectfunc)(HWND, HWND, char *, void *, void *) = (int (* API)(HWND, HWND, char *, void *, void *))tmp->signalfunction; + if(dw_window_get_data(tmp->window, "_dw_container")) - { - int (* API containerselectfunc)(HWND, char *, void *) = (int (* API)(HWND, char *, void *))tmp->signalfunction; - - result = containerselectfunc(tmp->window, pci->rc.pszIcon, tmp->data); - } + result = treeselectfunc(tmp->window, 0, pci->rc.pszIcon, tmp->data, 0); else { - int (* API treeselectfunc)(HWND, HWND, char *, void *, void *) = (int (* API)(HWND, HWND, char *, void *, void *))tmp->signalfunction; - if(lasthcnr == tmp->window && lastitem == (HWND)pci) { lasthcnr = 0; @@ -2166,7 +2162,7 @@ { lasthcnr = tmp->window; lastitem = (HWND)pci; - result = treeselectfunc(tmp->window, (HWND)pci, pci->rc.pszIcon, pci->user, tmp->data); + result = treeselectfunc(tmp->window, (HWND)pci, pci->rc.pszIcon, tmp->data, pci->user); } } tmp = NULL;