From: <kr_...@us...> - 2003-10-09 19:05:52
|
Update of /cvsroot/htoolkit/port/src/cbits/Win32 In directory sc8-pr-cvs1:/tmp/cvs-serv26724/src/cbits/Win32 Modified Files: EditBox.c Log Message: bugfix Index: EditBox.c =================================================================== RCS file: /cvsroot/htoolkit/port/src/cbits/Win32/EditBox.c,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** EditBox.c 8 Oct 2003 22:21:57 -0000 1.11 --- EditBox.c 9 Oct 2003 19:05:48 -0000 1.12 *************** *** 61,65 **** } ! void osSetEditPassword(WindowHandle editbox, BOOL visible) { LONG lStyle; --- 61,65 ---- } ! void osSetEditPassword(WindowHandle editbox, BOOL password) { LONG lStyle; *************** *** 67,71 **** lStyle = GetWindowLong(editbox, GWL_STYLE); ! if (visible) { SetWindowLong(editbox, GWL_STYLE, lStyle & ~ES_PASSWORD); --- 67,71 ---- lStyle = GetWindowLong(editbox, GWL_STYLE); ! if (!password) { SetWindowLong(editbox, GWL_STYLE, lStyle & ~ES_PASSWORD); *************** *** 83,87 **** BOOL osGetEditPassword(WindowHandle editbox) { ! return (GetWindowLong(editbox, GWL_STYLE) & ES_PASSWORD) == 0; } --- 83,87 ---- BOOL osGetEditPassword(WindowHandle editbox) { ! return (GetWindowLong(editbox, GWL_STYLE) & ES_PASSWORD) != 0; } |