From: <kr_...@us...> - 2003-10-12 07:54:01
|
Update of /cvsroot/htoolkit/port/src/cbits/Win32 In directory sc8-pr-cvs1:/tmp/cvs-serv20206/src/cbits/Win32 Modified Files: GroupBox.c Log Message: bugfix: resizeable groupBox Index: GroupBox.c =================================================================== RCS file: /cvsroot/htoolkit/port/src/cbits/Win32/GroupBox.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** GroupBox.c 8 Oct 2003 22:21:57 -0000 1.2 --- GroupBox.c 12 Oct 2003 07:53:57 -0000 1.3 *************** *** 12,15 **** --- 12,27 ---- case WM_PAINT: return CallWindowProc(DefGroupBoxProc, hWnd, uMsg, wParam, lParam); + case WM_SIZE: + { + RECT rect; + HWND hParent; + + hParent = GetParent(hWnd); + GetWindowRect(hWnd, &rect); + ScreenToClient(hParent, ((POINT *) &rect)); + ScreenToClient(hParent, ((POINT *) &rect)+1); + InvalidateRect(hParent, &rect, FALSE); + } + break; }; |