From: Rod O. <rod...@us...> - 2006-05-30 18:55:16
|
Update of /cvsroot/win32forth/win32forth-extsrc/extsrc/w32fConsole In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv24830/extsrc/w32fConsole Modified Files: Term.cpp Log Message: Rod: Fixed to redraw last character on a line while resizing console Index: Term.cpp =================================================================== RCS file: /cvsroot/win32forth/win32forth-extsrc/extsrc/w32fConsole/Term.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Term.cpp 27 May 2006 08:29:35 -0000 1.9 --- Term.cpp 30 May 2006 18:55:06 -0000 1.10 *************** *** 974,977 **** --- 974,980 ---- case WM_WINDOWPOSCHANGED: { + RECT RectConsole; + GetClientRect( hWndConsole, &RectConsole ); + RECT Rect; GetClientRect( hwnd, &Rect ); *************** *** 983,986 **** --- 986,992 ---- SWP_FRAMECHANGED ); + RectConsole.left = RectConsole.right - charW ; + InvalidateRect( hWndConsole, &RectConsole, true ); + return 0; } *************** *** 1331,1335 **** // Register console window class ! wndclass.style = CS_DBLCLKS | CS_OWNDC; wndclass.lpfnWndProc = ConsoleWndProc; wndclass.cbClsExtra = 0; --- 1337,1341 ---- // Register console window class ! wndclass.style = CS_DBLCLKS | CS_OWNDC ; wndclass.lpfnWndProc = ConsoleWndProc; wndclass.cbClsExtra = 0; |