comparison os2/dw.c @ 508:078a40ba2e41

Added dw_container_get_column_type and dw_filesystem_get_column_type.
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 18 Feb 2004 10:26:49 +0000
parents c607eb385e58
children 710f82598210
comparison
equal deleted inserted replaced
507:c607eb385e58 508:078a40ba2e41
6658 { 6658 {
6659 dw_container_set_item(handle, pointer, column + 2, row, data); 6659 dw_container_set_item(handle, pointer, column + 2, row, data);
6660 } 6660 }
6661 6661
6662 /* 6662 /*
6663 * Gets column type for a container column
6664 * Parameters:
6665 * handle: Handle to the container window (widget).
6666 * column: Zero based column.
6667 */
6668 int API dw_container_get_column_type(HWND handle, int column)
6669 {
6670 WindowData *blah = (WindowData *)WinQueryWindowPtr(handle, QWP_USER);
6671 ULONG *flags = blah ? blah->data : 0;
6672 int rc;
6673
6674 if(!flags)
6675 return 0;
6676
6677 if(flags[column] & DW_CFA_BITMAPORICON)
6678 rc = DW_CFA_BITMAPORICON;
6679 else if(flags[column] & DW_CFA_STRING)
6680 rc = DW_CFA_STRING;
6681 else if(flags[column] & DW_CFA_ULONG)
6682 rc = DW_CFA_ULONG;
6683 else if(flags[column] & DW_CFA_DATE)
6684 rc = DW_CFA_DATE;
6685 else if(flags[column] & DW_CFA_TIME)
6686 rc = DW_CFA_TIME;
6687 else
6688 rc = 0;
6689 return rc;
6690 }
6691
6692 /*
6693 * Gets column type for a filesystem container column
6694 * Parameters:
6695 * handle: Handle to the container window (widget).
6696 * column: Zero based column.
6697 */
6698 int API dw_filesystem_get_column_type(HWND handle, int column)
6699 {
6700 return dw_container_get_column_type( handle, column + 1 );
6701 }
6702
6703 /*
6663 * Sets the width of a column in the container. 6704 * Sets the width of a column in the container.
6664 * Parameters: 6705 * Parameters:
6665 * handle: Handle to window (widget) of container. 6706 * handle: Handle to window (widget) of container.
6666 * column: Zero based column of width being set. 6707 * column: Zero based column of width being set.
6667 * width: Width of column in pixels. 6708 * width: Width of column in pixels.