comparison win/dw.c @ 513:7755599311d4

Fixes search and replace errors.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 09 Mar 2004 05:58:52 +0000
parents 80dbd5a1f403
children 08d770271709
comparison
equal deleted inserted replaced
512:8eb10e610270 513:7755599311d4
5764 * Sets the visible line of an MLE box. 5764 * Sets the visible line of an MLE box.
5765 * Parameters: 5765 * Parameters:
5766 * handle: Handle to the MLE. 5766 * handle: Handle to the MLE.
5767 * line: Line to be visible. 5767 * line: Line to be visible.
5768 */ 5768 */
5769 void API dw_mle_set_cursor_visible(HWND handle, int line) 5769 void API dw_mle_set_visible(HWND handle, int line)
5770 { 5770 {
5771 int point = (int)SendMessage(handle, EM_LINEINDEX, (WPARAM)line, 0); 5771 int point = (int)SendMessage(handle, EM_LINEINDEX, (WPARAM)line, 0);
5772 dw_mle_set_cursor(handle, point); 5772 dw_mle_set_cursor(handle, point);
5773 } 5773 }
5774 5774
5776 * Sets the editablity of an MLE box. 5776 * Sets the editablity of an MLE box.
5777 * Parameters: 5777 * Parameters:
5778 * handle: Handle to the MLE. 5778 * handle: Handle to the MLE.
5779 * state: TRUE if it can be edited, FALSE for readonly. 5779 * state: TRUE if it can be edited, FALSE for readonly.
5780 */ 5780 */
5781 void API dw_mle_set_cursor_editable(HWND handle, int state) 5781 void API dw_mle_set_editable(HWND handle, int state)
5782 { 5782 {
5783 SendMessage(handle, EM_SETREADONLY, (WPARAM)(state ? FALSE : TRUE), 0); 5783 SendMessage(handle, EM_SETREADONLY, (WPARAM)(state ? FALSE : TRUE), 0);
5784 } 5784 }
5785 5785
5786 /* 5786 /*
5787 * Sets the word wrap state of an MLE box. 5787 * Sets the word wrap state of an MLE box.
5788 * Parameters: 5788 * Parameters:
5789 * handle: Handle to the MLE. 5789 * handle: Handle to the MLE.
5790 * state: TRUE if it wraps, FALSE if it doesn't. 5790 * state: TRUE if it wraps, FALSE if it doesn't.
5791 */ 5791 */
5792 void API dw_mle_set_cursor_word_wrap(HWND handle, int state) 5792 void API dw_mle_set_word_wrap(HWND handle, int state)
5793 { 5793 {
5794 /* If ES_AUTOHSCROLL is not set and there is not 5794 /* If ES_AUTOHSCROLL is not set and there is not
5795 * horizontal scrollbar it word wraps. 5795 * horizontal scrollbar it word wraps.
5796 */ 5796 */
5797 if(state) 5797 if(state)
6186 * Parameters: 6186 * Parameters:
6187 * handle: Handle to the tree containing the item. 6187 * handle: Handle to the tree containing the item.
6188 * item: Handle of the item to be modified. 6188 * item: Handle of the item to be modified.
6189 * itemdata: User defined data to be associated with item. 6189 * itemdata: User defined data to be associated with item.
6190 */ 6190 */
6191 void API dw_tree_item_change_data(HWND handle, HTREEITEM item, void *itemdata) 6191 void API dw_tree_item_set_data(HWND handle, HTREEITEM item, void *itemdata)
6192 { 6192 {
6193 TVITEM tvi; 6193 TVITEM tvi;
6194 void **ptrs; 6194 void **ptrs;
6195 6195
6196 tvi.mask = TVIF_HANDLE; 6196 tvi.mask = TVIF_HANDLE;