Mercurial > dwindows
comparison win/dw.c @ 294:144a94011265
If key code is extended pass 0 as the character parameter. Also fixed an
errantly missing typecast.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 25 Mar 2003 23:49:59 +0000 |
parents | 651b70046c6a |
children | aac3ab26d636 |
comparison
equal
deleted
inserted
replaced
293:315812516608 | 294:144a94011265 |
---|---|
1417 if(GetAsyncKeyState(VK_CONTROL) & 0x8000) | 1417 if(GetAsyncKeyState(VK_CONTROL) & 0x8000) |
1418 special |= KC_CTRL; | 1418 special |= KC_CTRL; |
1419 if(mp2 & (1 << 29)) | 1419 if(mp2 & (1 << 29)) |
1420 special |= KC_ALT; | 1420 special |= KC_ALT; |
1421 | 1421 |
1422 result = keypressfunc(tmp->window, (char)mp1, mp1, special, tmp->data); | 1422 result = keypressfunc(tmp->window, mp1 > 255 ? 0 : (char)mp1, mp1, special, tmp->data); |
1423 tmp = NULL; | 1423 tmp = NULL; |
1424 } | 1424 } |
1425 } | 1425 } |
1426 break; | 1426 break; |
1427 case WM_CLOSE: | 1427 case WM_CLOSE: |
5936 tvi.hItem = (HTREEITEM)item; | 5936 tvi.hItem = (HTREEITEM)item; |
5937 | 5937 |
5938 if(TreeView_GetItem(handle, &tvi)) | 5938 if(TreeView_GetItem(handle, &tvi)) |
5939 ptrs = (void **)tvi.lParam; | 5939 ptrs = (void **)tvi.lParam; |
5940 | 5940 |
5941 _dw_tree_delete_recursive(handle, item); | 5941 _dw_tree_delete_recursive(handle, (HTREEITEM)item); |
5942 TreeView_DeleteItem(handle, (HTREEITEM)item); | 5942 TreeView_DeleteItem(handle, (HTREEITEM)item); |
5943 if(ptrs) | 5943 if(ptrs) |
5944 free(ptrs); | 5944 free(ptrs); |
5945 } | 5945 } |
5946 | 5946 |