From: <dl...@us...> - 2003-01-31 15:31:54
|
Update of /cvsroot/htoolkit/port/src/cbits/Win32 In directory sc8-pr-cvs1:/tmp/cvs-serv24402/Win32 Modified Files: Window.c Log Message: fixed bug in "osSetViewSize". Now it holds that: do osSetViewSize x; y <- osGetViewSize => x==y Index: Window.c =================================================================== RCS file: /cvsroot/htoolkit/port/src/cbits/Win32/Window.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Window.c 30 Jan 2003 23:09:47 -0000 1.3 --- Window.c 31 Jan 2003 15:31:50 -0000 1.4 *************** *** 847,854 **** SetWindowPos(window,NULL,wrect.left,wrect.top, ! w+(wrect.right-wrect.left)-(crect.right-crect.left)+1, ! h+(wrect.bottom-wrect.top)-(crect.bottom-crect.top)+1, ! SWP_NOZORDER); ! GetClientRect(window,&crect); } --- 847,853 ---- SetWindowPos(window,NULL,wrect.left,wrect.top, ! (wrect.right-wrect.left) + (w - (crect.right-crect.left)), ! (wrect.bottom-wrect.top) + (h - (crect.bottom - crect.top)), ! SWP_NOZORDER); } *************** *** 1046,1054 **** } ! void osSetWindowResizeable(WindowHandle ctrl, int resizeable ) { ! LONG style = GetWindowLong(ctrl, GWL_STYLE ); if (resizeable) style |= WS_THICKFRAME; else style &= ~WS_THICKFRAME; ! SetWindowLong(ctrl, GWL_STYLE, style ); } --- 1045,1058 ---- } ! void osSetWindowResizeable(WindowHandle hwnd, int resizeable ) { ! RECT rect; ! LONG style = GetWindowLong(hwnd, GWL_STYLE ); if (resizeable) style |= WS_THICKFRAME; else style &= ~WS_THICKFRAME; ! SetWindowLong(hwnd, GWL_STYLE, style ); ! ! GetClientRect(hwnd,&rect); ! handleWindowResize(hwnd,rect.right-rect.left,rect.bottom-rect.top); ! handleWindowReLayout(hwnd); } |