Mercurial > dwindows
changeset 79:8082cb0e7c2e
Updated to the latest DW.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 27 Mar 2002 09:10:49 +0000 |
parents | 06fe66722371 |
children | 5e4730c42014 |
files | win/dw.c |
diffstat | 1 files changed, 6 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/win/dw.c Fri Mar 22 22:14:07 2002 +0000 +++ b/win/dw.c Wed Mar 27 09:10:49 2002 +0000 @@ -1910,23 +1910,15 @@ { if(cinfo->buddy) { - long val, position; - char tmpbuf[100] = ""; - - GetWindowText(cinfo->buddy, tmpbuf, 99); - - position = atol(tmpbuf); + long val; if(IS_IE5PLUS) val = (long)SendMessage(cinfo->buddy, UDM_GETPOS32, 0, 0); else val = (long)SendMessage(cinfo->buddy, UDM_GETPOS, 0, 0); - if(val != position) - { - sprintf(tmpbuf, "%d", val); - SetWindowText(hWnd, tmpbuf); - } + sprintf(tmpbuf, "%d", val); + SetWindowText(hWnd, tmpbuf); } } break; @@ -4826,7 +4818,7 @@ SendMessage(handle, LB_SETTOPINDEX, (WPARAM)top, 0); } -#define MLE_MAX 200000 +#define MLE_MAX 1000000 /* * Adds text to an MLE box and returns the current point. * Parameters: @@ -5513,6 +5505,7 @@ lvi.cchTextMax = 1; lvi.iImage = -1; + ShowWindow(handle, SW_HIDE); for(z=0;z<rowcount;z++) ListView_InsertItem(handle, &lvi); return (void *)handle; @@ -5733,7 +5726,7 @@ */ void dw_container_insert(HWND handle, void *pointer, int rowcount) { - /* This isn't a separate step in windows. */ + ShowWindow(handle, SW_SHOW); } /*