Mercurial > dwindows
comparison win/dw.c @ 350:2216e65ad2ae
Removed slider flags and container selection flags from the header file.
Added "multi" parameter to dw_container_new() to control multiple
selection.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 14 Apr 2003 13:47:20 +0000 |
parents | 81fae15885d7 |
children | 84a24d739d12 |
comparison
equal
deleted
inserted
replaced
349:5d3f2e2dcc6b | 350:2216e65ad2ae |
---|---|
1550 if(tmp->window == tem->hdr.hwndFrom) | 1550 if(tmp->window == tem->hdr.hwndFrom) |
1551 { | 1551 { |
1552 LV_ITEM lvi; | 1552 LV_ITEM lvi; |
1553 int iItem; | 1553 int iItem; |
1554 | 1554 |
1555 iItem = ListView_GetNextItem(tmp->window, -1, LVNI_FOCUSED); | 1555 iItem = ListView_GetNextItem(tmp->window, -1, LVNI_SELECTED); |
1556 | 1556 |
1557 memset(&lvi, 0, sizeof(LV_ITEM)); | 1557 memset(&lvi, 0, sizeof(LV_ITEM)); |
1558 | 1558 |
1559 if(iItem > -1) | 1559 if(iItem > -1) |
1560 { | 1560 { |
3879 * Create a container object to be packed. | 3879 * Create a container object to be packed. |
3880 * Parameters: | 3880 * Parameters: |
3881 * id: An ID to be used for getting the resource from the | 3881 * id: An ID to be used for getting the resource from the |
3882 * resource file. | 3882 * resource file. |
3883 */ | 3883 */ |
3884 HWND API dw_container_new(ULONG id) | 3884 HWND API dw_container_new(ULONG id, int multi) |
3885 { | 3885 { |
3886 HWND tmp = CreateWindow(WC_LISTVIEW, | 3886 HWND tmp = CreateWindow(WC_LISTVIEW, |
3887 "", | 3887 "", |
3888 WS_VISIBLE | WS_CHILD | | 3888 WS_VISIBLE | WS_CHILD | |
3889 (multi ? 0 : LVS_SINGLESEL) | | |
3889 LVS_REPORT | LVS_SHOWSELALWAYS | | 3890 LVS_REPORT | LVS_SHOWSELALWAYS | |
3890 LVS_SHAREIMAGELISTS | WS_BORDER | | 3891 LVS_SHAREIMAGELISTS | WS_BORDER | |
3891 WS_CLIPCHILDREN, | 3892 WS_CLIPCHILDREN, |
3892 0,0,2000,1000, | 3893 0,0,2000,1000, |
3893 DW_HWND_OBJECT, | 3894 DW_HWND_OBJECT, |