From: <kr_...@us...> - 2003-10-10 22:55:20
|
Update of /cvsroot/htoolkit/port/src/cbits/Win32 In directory sc8-pr-cvs1:/tmp/cvs-serv31387/src/cbits/Win32 Modified Files: Util.c Window.c Log Message: more natural look and feel for dialogs Index: Util.c =================================================================== RCS file: /cvsroot/htoolkit/port/src/cbits/Win32/Util.c,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** Util.c 1 Sep 2003 20:27:49 -0000 1.24 --- Util.c 10 Oct 2003 22:55:12 -0000 1.25 *************** *** 84,88 **** wc.cbWndExtra = DLGWINDOWEXTRA; wc.hInstance = ghModule; ! wc.hIcon = LoadIcon(NULL, IDI_APPLICATION); wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH) (COLOR_BTNFACE + 1); --- 84,88 ---- wc.cbWndExtra = DLGWINDOWEXTRA; wc.hInstance = ghModule; ! wc.hIcon = NULL;//LoadIcon(NULL, IDI_APPLICATION); wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = (HBRUSH) (COLOR_BTNFACE + 1); Index: Window.c =================================================================== RCS file: /cvsroot/htoolkit/port/src/cbits/Win32/Window.c,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** Window.c 10 Oct 2003 22:30:41 -0000 1.54 --- Window.c 10 Oct 2003 22:55:13 -0000 1.55 *************** *** 791,795 **** // start to fill in the dlgtemplate information. Addressing by WORDs ! lStyle = WS_CAPTION | DS_SETFONT | WS_OVERLAPPEDWINDOW | WS_HSCROLL | WS_VSCROLL; p = dlgtemplate; --- 791,795 ---- // start to fill in the dlgtemplate information. Addressing by WORDs ! lStyle = WS_CAPTION | WS_SYSMENU | WS_THICKFRAME | DS_CENTER | DS_MODALFRAME; p = dlgtemplate; *************** *** 1366,1371 **** style = GetWindowLong(hTargetWnd, GWL_STYLE); ! if (resizeable) style |= WS_THICKFRAME; ! else style &= ~WS_THICKFRAME; SetWindowLong(hTargetWnd, GWL_STYLE, style); --- 1366,1376 ---- style = GetWindowLong(hTargetWnd, GWL_STYLE); ! if (resizeable) ! if (style & DS_MODALFRAME) ! style |= WS_THICKFRAME; ! else ! style |= WS_THICKFRAME | WS_MAXIMIZEBOX; ! else ! style &= ~(WS_THICKFRAME | WS_MAXIMIZEBOX); SetWindowLong(hTargetWnd, GWL_STYLE, style); |