Mercurial > dwindows
comparison win/dw.c @ 503:f3ed8dda02f8
Added dw_filesystem_change_*() and testcase code from Mark in dwtest.
Also, added _fix_button_owner() to dw_window_redraw() on OS/2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 18 Jan 2004 06:33:25 +0000 |
parents | 56ea525c1a24 |
children | 2ecbb7963011 |
comparison
equal
deleted
inserted
replaced
502:56ea525c1a24 | 503:f3ed8dda02f8 |
---|---|
6693 { | 6693 { |
6694 dw_container_set_item(handle, NULL, column, row, data); | 6694 dw_container_set_item(handle, NULL, column, row, data); |
6695 } | 6695 } |
6696 | 6696 |
6697 /* | 6697 /* |
6698 * Changes an existing item in specified row and column to the given data. | |
6699 * Parameters: | |
6700 * handle: Handle to the container window (widget). | |
6701 * column: Zero based column of data being set. | |
6702 * row: Zero based row of data being set. | |
6703 * data: Pointer to the data to be added. | |
6704 */ | |
6705 void API dw_filesystem_change_item(HWND handle, int column, int row, void *data) | |
6706 { | |
6707 dw_container_change_item(handle, column + 2, row, data); | |
6708 } | |
6709 | |
6710 /* | |
6711 * Changes an item in specified row and column to the given data. | |
6712 * Parameters: | |
6713 * handle: Handle to the container window (widget). | |
6714 * pointer: Pointer to the allocated memory in dw_container_alloc(). | |
6715 * column: Zero based column of data being set. | |
6716 * row: Zero based row of data being set. | |
6717 * data: Pointer to the data to be added. | |
6718 */ | |
6719 void API dw_filesystem_change_file(HWND handle, int row, char *filename, unsigned long icon) | |
6720 { | |
6721 dw_container_change_item(handle, 0, row, (void *)&icon); | |
6722 dw_container_change_item(handle, 1, row, (void *)&filename); | |
6723 } | |
6724 | |
6725 /* | |
6698 * Sets the width of a column in the container. | 6726 * Sets the width of a column in the container. |
6699 * Parameters: | 6727 * Parameters: |
6700 * handle: Handle to window (widget) of container. | 6728 * handle: Handle to window (widget) of container. |
6701 * column: Zero based column of width being set. | 6729 * column: Zero based column of width being set. |
6702 * width: Width of column in pixels. | 6730 * width: Width of column in pixels. |