comparison win/dw.c @ 389:23a603b136bd

Change call to SendMessage() to make dw_mle_set() actually work.
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 07 May 2003 22:20:23 +0000
parents 6b573770f446
children a7a561103eac
comparison
equal deleted inserted replaced
388:6b573770f446 389:23a603b136bd
5525 * handle: Handle to the MLE to be positioned. 5525 * handle: Handle to the MLE to be positioned.
5526 * point: Point to position cursor. 5526 * point: Point to position cursor.
5527 */ 5527 */
5528 void API dw_mle_set(HWND handle, int point) 5528 void API dw_mle_set(HWND handle, int point)
5529 { 5529 {
5530 SendMessage(handle, EM_SETSEL, (WPARAM)point, (LPARAM)point); 5530 SendMessage(handle, EM_SETSEL, 0, MAKELONG(point,point));
5531 SendMessage(handle, EM_SCROLLCARET, 0, 0); 5531 SendMessage(handle, EM_SCROLLCARET, 0, 0);
5532 } 5532 }
5533 5533
5534 /* 5534 /*
5535 * Finds text in an MLE box. 5535 * Finds text in an MLE box.