comparison os2/dw.c @ 52:0804483f6320

Added a redraw parameter to dw_container_clear().
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 11 Nov 2001 17:49:33 +0000
parents bf42d08d72d7
children c4e1139d9872
comparison
equal deleted inserted replaced
51:d97de82f0b6e 52:0804483f6320
5041 5041
5042 /* 5042 /*
5043 * Removes all rows from a container. 5043 * Removes all rows from a container.
5044 * Parameters: 5044 * Parameters:
5045 * handle: Handle to the window (widget) to be cleared. 5045 * handle: Handle to the window (widget) to be cleared.
5046 */ 5046 * redraw: TRUE to cause the container to redraw immediately.
5047 void dw_container_clear(HWND handle) 5047 */
5048 void dw_container_clear(HWND handle, int redraw)
5048 { 5049 {
5049 int z = 0; 5050 int z = 0;
5050 5051
5051 while((int)WinSendMsg(handle, CM_REMOVERECORD, (MPARAM)0L, MPFROM2SHORT(0, CMA_INVALIDATE | CMA_FREE)) == -1) 5052 while((int)WinSendMsg(handle, CM_REMOVERECORD, (MPARAM)0L, MPFROM2SHORT(0, (redraw ? CMA_INVALIDATE : 0) | CMA_FREE)) == -1)
5052 { 5053 {
5053 z++; 5054 z++;
5054 if(z > 5000000) 5055 if(z > 5000000)
5055 break; 5056 break;
5056 DosSleep(1); 5057 DosSleep(1);