Update of /cvsroot/htoolkit/port/src/cbits/Win32
In directory sc8-pr-cvs1:/tmp/cvs-serv13973/port/src/cbits/Win32
Modified Files:
Window.c
Log Message:
Proper event handling for dialogs
Index: Window.c
===================================================================
RCS file: /cvsroot/htoolkit/port/src/cbits/Win32/Window.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -d -r1.26 -r1.27
*** Window.c 26 Apr 2003 20:03:08 -0000 1.26
--- Window.c 27 Apr 2003 18:19:14 -0000 1.27
***************
*** 1,1404 ****
! #define _WIN32_IE 0x0400
!
! #include "Window.h"
! #include "Internals.h"
! #include "Handlers_stub.h"
! #include <windowsx.h>
!
! typedef struct
! {
! POINT Origin;
[...2794 lines suppressed...]
! RECT rect;
! GetWindowRect(ctrl,&rect);
! res[0] = rect.left;
! res[1] = rect.top;
! res[2] = rect.right;
! res[3] = rect.bottom;
! }
!
! 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);
! }
|