comparison os2/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 0137c30f485e
children fb2667339e9f
comparison
equal deleted inserted replaced
349:5d3f2e2dcc6b 350:2216e65ad2ae
3939 * Create a container object to be packed. 3939 * Create a container object to be packed.
3940 * Parameters: 3940 * Parameters:
3941 * id: An ID to be used for getting the resource from the 3941 * id: An ID to be used for getting the resource from the
3942 * resource file. 3942 * resource file.
3943 */ 3943 */
3944 HWND API dw_container_new(ULONG id) 3944 HWND API dw_container_new(ULONG id, int multi)
3945 { 3945 {
3946 WindowData *blah = calloc(1, sizeof(WindowData)); 3946 WindowData *blah = calloc(1, sizeof(WindowData));
3947 HWND tmp = WinCreateWindow(HWND_OBJECT, 3947 HWND tmp = WinCreateWindow(HWND_OBJECT,
3948 WC_CONTAINER, 3948 WC_CONTAINER,
3949 NULL, 3949 NULL,
3950 WS_VISIBLE | CCS_READONLY | 3950 WS_VISIBLE | CCS_READONLY |
3951 CCS_SINGLESEL | CCS_AUTOPOSITION, 3951 (multi ? CCS_EXTENDSEL : CCS_SINGLESEL) |
3952 CCS_AUTOPOSITION,
3952 0,0,2000,1000, 3953 0,0,2000,1000,
3953 NULLHANDLE, 3954 NULLHANDLE,
3954 HWND_TOP, 3955 HWND_TOP,
3955 id, 3956 id,
3956 NULL, 3957 NULL,