- Timestamp:
- Nov 26, 1999, 6:06:09 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r1710 r1849 1 /* $Id: dc.cpp,v 1.2 2 1999-11-12 11:38:45 sandervlExp $ */1 /* $Id: dc.cpp,v 1.23 1999-11-26 17:06:06 cbratschi Exp $ */ 2 2 3 3 /* … … 876 876 { 877 877 #if 1 878 878 // Don't do this for now (causes lots of desktop repaints in WordPad) 879 879 O32_SetLastError (ERROR_INVALID_PARAMETER); 880 880 return FALSE; … … 1273 1273 } 1274 1274 dprintf(("ScrollWindow %x %d %d\n", hwnd, dx, dy)); 1275 MapWin32ToOS2Rectl(window->get ClientRect(), (PRECTLOS2)&clientRect);1275 MapWin32ToOS2Rectl(window->getOS2WindowHandle(),window->getClientRect(), (PRECTLOS2)&clientRect); 1276 1276 //Rectangle could be relative to parent window, so fix this 1277 1277 if(clientRect.yBottom != 0) { … … 1284 1284 } 1285 1285 if(pScroll) { 1286 MapWin32ToOS2Rectl( (RECT *)pScroll, (PRECTLOS2)&scrollRect);1286 MapWin32ToOS2Rectl(window->getOS2WindowHandle(),(RECT *)pScroll, (PRECTLOS2)&scrollRect); 1287 1287 pScrollRect = &scrollRect; 1288 1288 … … 1297 1297 1298 1298 if(pClip) { 1299 MapWin32ToOS2Rectl( (RECT *)pClip, (PRECTLOS2)&clipRect);1299 MapWin32ToOS2Rectl(window->getOS2WindowHandle(),(RECT *)pClip, (PRECTLOS2)&clipRect); 1300 1300 pClipRect = &clipRect; 1301 1301 … … 1341 1341 if (scrollFlag & SW_SCROLLCHILDREN_W) scrollFlags |= SW_SCROLLCHILDREN; 1342 1342 1343 if(pScroll) MapWin32ToOS2Rectl( (RECT *)pScroll, (PRECTLOS2)&scrollRect);1344 if(pClip) MapWin32ToOS2Rectl( (RECT *)pClip, (PRECTLOS2)&clipRect);1343 if(pScroll) MapWin32ToOS2Rectl(window->getOS2WindowHandle(),(RECT *)pScroll, (PRECTLOS2)&scrollRect); 1344 if(pClip) MapWin32ToOS2Rectl(window->getOS2WindowHandle(),(RECT *)pClip, (PRECTLOS2)&clipRect); 1345 1345 1346 1346 RECTL rectlUpdate; -
trunk/src/user32/edit.cpp
r1828 r1849 1 /* $Id: edit.cpp,v 1.1 7 1999-11-24 18:21:36 cbratschi Exp $ */1 /* $Id: edit.cpp,v 1.18 1999-11-26 17:06:06 cbratschi Exp $ */ 2 2 /* 3 3 * Edit control … … 20 20 21 21 /* CB: todo 22 - WM_MOUSEMOVE: vert lines invalidate bug 22 23 - EN_UPDATE: send before update 23 24 - EN_CHANGE: send after update -> WM_PAINT isn't the right place 24 25 - EN_HSCROLL/EN_VSCROLL: send before update 25 - still problems with caret26 26 - WS_BORDER -> bug in Win32BaseWindow::SetWindowLong 27 - clipping bug(s)28 27 - many messages, styles, notifications 29 28 */ … … 229 228 static LRESULT EDIT_WM_LButtonDown(HWND hwnd, EDITSTATE *es, DWORD keys, INT x, INT y); 230 229 static LRESULT EDIT_WM_LButtonUp(HWND hwnd, EDITSTATE *es, DWORD keys, INT x, INT y); 230 static LRESULT EDIT_WM_CaptureChanged(HWND hwnd,EDITSTATE *es); 231 231 static LRESULT EDIT_WM_MouseMove(HWND hwnd, EDITSTATE *es, DWORD keys, INT x, INT y); 232 232 static LRESULT EDIT_WM_NCCreate(HWND hwnd, LPCREATESTRUCTA cs); … … 671 671 //DPRINTF_EDIT_MSG32("WM_LBUTTONUP"); 672 672 result = EDIT_WM_LButtonUp(hwnd, es, (DWORD)wParam, SLOWORD(lParam), SHIWORD(lParam)); 673 break; 674 675 case WM_CAPTURECHANGED: 676 result = EDIT_WM_CaptureChanged(hwnd,es); 673 677 break; 674 678 … … 1014 1018 { 1015 1019 INT line_index = EDIT_EM_LineIndex(hwnd, es, line); 1016 1020 //CB: fix 1017 1021 if (es->style & ES_MULTILINE) 1018 1022 rc->top = es->format_rect.top + (line - es->y_offset) * es->line_height; … … 1089 1093 if (IntersectRect(&rc, &line_rect, &es->format_rect)) 1090 1094 { 1091 if (es->flags & EF_FOCUSED)HideCaret(hwnd);1095 HideCaret(hwnd); 1092 1096 InvalidateRect(hwnd, &rc, FALSE); 1093 if (es->flags & EF_FOCUSED)ShowCaret(hwnd);1097 ShowCaret(hwnd); 1094 1098 } 1095 1099 } … … 1132 1136 GetClientRect(hwnd, &rc1); 1133 1137 IntersectRect(&rcWnd, &rc1, &es->format_rect); 1134 if (es->flags & EF_FOCUSED)HideCaret(hwnd);1138 HideCaret(hwnd); 1135 1139 if (sl == el) { 1136 1140 EDIT_GetLineRect(hwnd, es, sl, sc, ec, &rcLine); … … 1156 1160 InvalidateRect(hwnd, &rcUpdate, FALSE); 1157 1161 } 1158 if (es->flags & EF_FOCUSED)ShowCaret(hwnd);1162 ShowCaret(hwnd); 1159 1163 } 1160 1164 … … 2087 2091 GetClientRect(hwnd, &rc1); 2088 2092 IntersectRect(&rc, &rc1, &es->format_rect); 2089 rc.top--; //CB: top line not moved/refreshed 2093 2090 2094 ScrollWindowEx(hwnd, -dx, dy, 2091 2095 NULL, &rc, (HRGN)NULL, NULL, SW_INVALIDATE); … … 2851 2855 2852 2856 GetClientRect(hwnd, &rc); 2853 IntersectClipRect(dc, rc.left, rc.top, rc.right, rc.bottom); 2857 IntersectClipRect(dc, rc.left, rc.top, rc.right, rc.bottom); CB: 2854 2858 GetClipBox(dc, &rc); 2855 2859 /* … … 2876 2880 return 0; 2877 2881 2878 //SvL: Bugfix: +12879 2882 len = min(count, lstrlenA(es->text)+1); // determine length 2880 2883 lstrcpynA(text, es->text, len); // copy as much as possible … … 3262 3265 static LRESULT EDIT_WM_LButtonUp(HWND hwnd, EDITSTATE *es, DWORD keys, INT x, INT y) 3263 3266 { 3264 if (es->bCaptureState && GetCapture() == hwnd) { 3265 KillTimer(hwnd, 0); 3266 ReleaseCapture(); 3267 } 3268 es->bCaptureState = FALSE; 3269 3270 return 0; 3271 } 3272 3267 if (es->bCaptureState) 3268 { 3269 KillTimer(hwnd,0); 3270 ReleaseCapture(); 3271 } 3272 es->bCaptureState = FALSE; 3273 3274 return 0; 3275 } 3276 3277 static LRESULT EDIT_WM_CaptureChanged(HWND hwnd,EDITSTATE *es) 3278 { 3279 if (es->bCaptureState) KillTimer(hwnd,0); 3280 es->bCaptureState = FALSE; 3281 3282 return 0; 3283 } 3273 3284 3274 3285 /********************************************************************* … … 3283 3294 INT prex, prey; 3284 3295 3285 if (GetCapture() != hwnd) 3286 return 1; //SvL: Bugfix 3296 if (!es->bCaptureState) return 0; 3287 3297 3288 3298 /* … … 3401 3411 if (es->flags & EF_UPDATE) EDIT_NOTIFY_PARENT(hwnd, EN_UPDATE); 3402 3412 3403 if (es->flags & EF_FOCUSED)HideCaret(hwnd);3413 HideCaret(hwnd); 3404 3414 3405 3415 if (eraseBkGnd) … … 3473 3483 EDIT_SetCaretPos(hwnd, es, es->selection_end,es->flags & EF_AFTER_WRAP); 3474 3484 3475 if (es->flags & EF_FOCUSED)ShowCaret(hwnd);3485 ShowCaret(hwnd); 3476 3486 3477 3487 //CB: replace … … 3490 3500 3491 3501 //CB: original controls redraws many times, cache drawing 3492 if (es->flags & EF_FOCUSED)HideCaret(hwnd);3502 HideCaret(hwnd); 3493 3503 GetClientRect(hwnd,&rect); 3494 3504 hdc = GetDC(hwnd); … … 3503 3513 DeleteDC(hdcCompatible); 3504 3514 ReleaseDC(hwnd,hdc); 3505 if (es->flags & EF_FOCUSED)ShowCaret(hwnd);3515 ShowCaret(hwnd); 3506 3516 } 3507 3517 -
trunk/src/user32/oslibgdi.cpp
r1297 r1849 1 /* $Id: oslibgdi.cpp,v 1. 3 1999-10-14 18:27:57 sandervlExp $ */1 /* $Id: oslibgdi.cpp,v 1.4 1999-11-26 17:06:07 cbratschi Exp $ */ 2 2 /* 3 3 * Window GDI wrapper functions for OS/2 … … 85 85 } 86 86 87 if(hwndParent != HWND_DESKTOP) 87 if(hwndParent != HWND_DESKTOP) 88 88 { 89 90 91 92 89 window = Win32BaseWindow::GetWindowFromOS2FrameHandle(hwndParent); 90 if(window == NULL) 91 return FALSE; 92 height = window->getWindowHeight(); 93 93 } 94 94 else height = OSLibQueryScreenHeight(); … … 106 106 // 107 107 // Parameters: 108 // hwnd: OS/2 window handle 108 109 // rectOS2: OS/2 child window RECTL 109 110 // rectWin32: Win32 Child window RECT (IN) … … 113 114 // FALSE: Failures 114 115 //****************************************************************************** 115 BOOL MapOS2ToWin32Rectl(PRECTLOS2 rectOS2, PRECT rectWin32) 116 { 117 ULONG length = rectOS2->yTop - rectOS2->yBottom; 118 119 rectWin32->bottom = length - rectOS2->yBottom; 120 rectWin32->top = length - rectOS2->yTop; 116 BOOL MapOS2ToWin32Rectl(HWND hwnd,PRECTLOS2 rectOS2, PRECT rectWin32) 117 { 118 RECTL rect; 119 120 if (!WinQueryWindowRect(hwnd,&rect)) return FALSE; 121 122 rectWin32->bottom = rect.yTop-rectOS2->yBottom; 123 rectWin32->top = rect.yTop-rectOS2->yTop; 121 124 rectWin32->left = rectOS2->xLeft; 122 125 rectWin32->right = rectOS2->xRight; 126 123 127 return TRUE; 124 128 } … … 128 132 // 129 133 // Parameters: 134 // hwnd: OS/2 window handle 130 135 // rectWin32: Win32 Child window RECT (IN) 131 136 // rectOS2: OS/2 Child window RECTL (OUT) … … 134 139 // FALSE: Failures 135 140 //****************************************************************************** 136 BOOL MapWin32ToOS2Rectl(PRECT rectWin32, PRECTLOS2 rectOS2) 137 { 138 ULONG length = rectWin32->bottom - rectWin32->top; 139 140 rectOS2->yBottom = length - rectWin32->bottom; 141 rectOS2->yTop = length - rectWin32->top; 141 BOOL MapWin32ToOS2Rectl(HWND hwnd,PRECT rectWin32, PRECTLOS2 rectOS2) 142 { 143 RECTL rect; 144 145 if (!WinQueryWindowRect(hwnd,&rect)) return FALSE; 146 147 rectOS2->yBottom = rect.yTop-rectWin32->bottom; 148 rectOS2->yTop = rect.yTop-rectWin32->top; 142 149 rectOS2->xLeft = rectWin32->left; 143 150 rectOS2->xRight = rectWin32->right; 151 144 152 return TRUE; 153 } 154 //****************************************************************************** 155 //****************************************************************************** 156 BOOL MapOS2ToWin32WindowRect(PRECTLOS2 rectOS2,PRECT rectWin32) 157 { 158 rectWin32->bottom = rectOS2->yTop; 159 rectWin32->top = rectOS2->yBottom; 160 rectWin32->left = rectOS2->xLeft; 161 rectWin32->right = rectOS2->xRight; 162 163 return TRUE; 164 } 165 //****************************************************************************** 166 //****************************************************************************** 167 BOOL MapWin32ToOS2WindowRect(PRECT rectWin32,PRECTLOS2 rectOS2) 168 { 169 rectOS2->yBottom = rectWin32->top; 170 rectOS2->yTop = rectWin32->bottom; 171 rectOS2->xLeft = rectWin32->left; 172 rectOS2->xRight = rectWin32->right; 173 174 return TRUE; 145 175 } 146 176 //****************************************************************************** … … 155 185 return 0; 156 186 } 157 MapOS2ToWin32Rectl( (RECTLOS2 *)&rectl, rectWin32);187 MapOS2ToWin32Rectl(hwnd,(RECTLOS2 *)&rectl, rectWin32); 158 188 return WinBeginPaint(hwnd, NULLHANDLE, &rectl); 159 189 } … … 169 199 { 170 200 if(hwnd == OSLIB_HWND_DESKTOP) 171 201 hwnd = HWND_DESKTOP; 172 202 173 203 return (HDC)WinGetPS(hwnd); … … 186 216 187 217 if(pRect) { 188 MapWin32ToOS2Rectl( pRect, &rectl);218 MapWin32ToOS2Rectl(hwnd,pRect, &rectl); 189 219 return WinInvalidateRect(hwnd, (PRECTL)&rectl, fIncludeChildren); 190 220 } … … 201 231 rc = WinQueryUpdateRect(hwnd, (PRECTL)&rectl); 202 232 if(rc) { 203 MapOS2ToWin32Rectl( &rectl, pRect);233 MapOS2ToWin32Rectl(hwnd,&rectl, pRect); 204 234 } 205 235 else memset(pRect, 0, sizeof(RECT)); -
trunk/src/user32/oslibgdi.h
r949 r1849 1 /* $Id: oslibgdi.h,v 1. 1 1999-09-15 23:18:53 sandervlExp $ */1 /* $Id: oslibgdi.h,v 1.2 1999-11-26 17:06:07 cbratschi Exp $ */ 2 2 /* 3 3 * Window GDI wrapper functions for OS/2 … … 55 55 BOOL MapOS2ToWin32Rectl(HWND hwndParent, HWND hwndChild, PRECTLOS2 rectOS2, PRECT rectWin32); 56 56 57 BOOL MapOS2ToWin32Rectl(PRECTLOS2 rectOS2, PRECT rectWin32); 58 BOOL MapWin32ToOS2Rectl(PRECT rectWin32, PRECTLOS2 rectOS2); 57 BOOL MapOS2ToWin32Rectl(HWND hwnd,PRECTLOS2 rectOS2, PRECT rectWin32); 58 BOOL MapWin32ToOS2Rectl(HWND hwnd,PRECT rectWin32, PRECTLOS2 rectOS2); 59 60 BOOL MapOS2ToWin32WindowRect(PRECTLOS2 rectOS2,PRECT rectWin32); 61 BOOL MapWin32ToOS2WindowRect(PRECT rectWin32,PRECTLOS2 rectOS2); 59 62 60 63 #endif //__OSLIBGDI_H__ -
trunk/src/user32/oslibwin.cpp
r1839 r1849 1 /* $Id: oslibwin.cpp,v 1.4 8 1999-11-25 19:22:02 sandervlExp $ */1 /* $Id: oslibwin.cpp,v 1.49 1999-11-26 17:06:08 cbratschi Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 264 264 ULONG OSLibWinBroadcastMsg(ULONG msg, ULONG wParam, ULONG lParam, BOOL fSend) 265 265 { 266 return WinBroadcastMsg(HWND_DESKTOP, msg, (MPARAM)wParam, (MPARAM)lParam, 266 return WinBroadcastMsg(HWND_DESKTOP, msg, (MPARAM)wParam, (MPARAM)lParam, 267 267 (fSend) ? BMSG_SEND : BMSG_POST); 268 268 } … … 403 403 MapOS2ToWin32Rectl(OSLIB_HWND_DESKTOP, hwnd, &rectl, pRect); 404 404 } 405 else MapOS2ToWin32 Rectl(&rectl, pRect);405 else MapOS2ToWin32WindowRect(&rectl, pRect); 406 406 } 407 407 else memset(pRect, 0, sizeof(RECT)); -
trunk/src/user32/pmwindow.cpp
r1831 r1849 1 /* $Id: pmwindow.cpp,v 1.5 6 1999-11-24 19:32:22 sandervlExp $ */1 /* $Id: pmwindow.cpp,v 1.57 1999-11-26 17:06:08 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 178 178 ScreenWidth = desktopRectl.xRight; 179 179 ScreenHeight = desktopRectl.yTop; 180 181 180 181 182 182 HDC hdc; /* Device-context handle */ 183 183 /* context data structure */ 184 184 DEVOPENSTRUC dop = {NULL, "DISPLAY", NULL, NULL, NULL, NULL, 185 185 NULL, NULL, NULL}; 186 186 187 187 /* create memory device context */ 188 188 hdc = DevOpenDC(hab, OD_MEMORY, "*", 5L, (PDEVOPENDATA)&dop, NULLHANDLE); … … 213 213 } 214 214 if(msg == WIN32APP_POSTMSG && (ULONG)mp1 == WIN32PM_MAGIC) { 215 //win32 app user message 216 215 //win32 app user message 216 win32wnd->PostMessage((POSTMSG_PACKET *)mp2); 217 217 return (MRESULT)0; 218 218 } … … 869 869 { 870 870 dprintf(("OS2: WM_ERASEBACKGROUND %x", win32wnd->getWindowHandle())); 871 //CB: handled in WM_PAINT too, don't do it twice! 872 871 873 if (WinQueryUpdateRect (hwnd, NULL) && !win32wnd->isSupressErase()) { 872 874 BOOL erased = sendEraseBkgnd (win32wnd); 873 875 win32wnd->setEraseBkgnd (!erased, !erased); 874 876 } 877 875 878 break; 876 879 } 877 880 878 881 case WM_PAINT: 882 { 879 883 dprintf(("OS2: WM_PAINT %x", hwnd)); 880 884 … … 885 889 } 886 890 } 891 887 892 win32wnd->setSupressErase (FALSE); 888 893 889 if(win32wnd->MsgPaint(0, 0)) { 890 goto RunDefWndProc; 891 } 892 //Apparently there are apps that return 0, but don't do anything during WM_PAINT 894 win32wnd->MsgPaint(0, 0); 895 896 //validate the update region, WM_PAINT has no return value 893 897 goto RunDefWndProc; 898 } 894 899 895 900 case WM_HITTEST: -
trunk/src/user32/syscolor.cpp
r1790 r1849 1 /* $Id: syscolor.cpp,v 1.1 1 1999-11-21 12:32:59 achimhaExp $ */1 /* $Id: syscolor.cpp,v 1.12 1999-11-26 17:06:08 cbratschi Exp $ */ 2 2 3 3 /* … … 245 245 246 246 } 247 //******************************************************************************248 //******************************************************************************249 247 /*********************************************************************** 250 248 * This function is new to the Wine lib -- it does not exist in … … 263 261 else return 0; 264 262 } 263 //****************************************************************************** 264 //****************************************************************************** 265 INT SYSCOLOR_GetLastColor(VOID) 266 { 267 return NUM_SYS_COLORS-1; 268 } 269 //****************************************************************************** 270 //****************************************************************************** 271 INT SYSCOLOR_GetNumColors(VOID) 272 { 273 return NUM_SYS_COLORS; 274 } -
trunk/src/user32/syscolor.h
r1378 r1849 1 /* $Id: syscolor.h,v 1. 6 1999-10-20 16:27:01cbratschi Exp $ */1 /* $Id: syscolor.h,v 1.7 1999-11-26 17:06:08 cbratschi Exp $ */ 2 2 3 3 /* … … 12 12 #define __WINE_SYSCOLOR_H 13 13 14 //GetSysColor extra colors15 #define COLOR_3DDKSHADOW 2116 #define COLOR_3DLIGHT 2217 #define COLOR_INFOTEXT 2318 #define COLOR_INFOBK 2419 /* win98 colors */20 #define COLOR_ALTERNATEBTNFACE 25 /* undocumented, constant's name unknown */21 #define COLOR_HOTLIGHT 2622 #define COLOR_GRADIENTACTIVECAPTION 2723 #define COLOR_GRADIENTINACTIVECAPTION 2824 25 #define COLOR_DESKTOP COLOR_BACKGROUND26 #define COLOR_3DFACE COLOR_BTNFACE27 #define COLOR_3DSHADOW COLOR_BTNSHADOW28 #define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT29 #define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT30 #define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT31 32 33 14 BOOL WIN32API OS2UpdateWindow(HWND hwnd); 34 15 HBRUSH WIN32API OS2GetSysColorBrush(int nIndex); … … 37 18 extern void SYSCOLOR_Save(void); 38 19 20 extern INT SYSCOLOR_GetLastColor(VOID); 21 extern INT SYSCOLOR_GetNumColors(VOID); 22 39 23 #endif /* __WINE_SYSCOLOR_H */ -
trunk/src/user32/user32.cpp
r1818 r1849 1 /* $Id: user32.cpp,v 1.5 5 1999-11-23 19:34:19 sandervlExp $ */1 /* $Id: user32.cpp,v 1.56 1999-11-26 17:06:08 cbratschi Exp $ */ 2 2 3 3 /* … … 398 398 { 399 399 return LoadCursorA(NULL,lpFileName); 400 } 400 } 401 401 else 402 402 { … … 682 682 683 683 switch(nIndex) { 684 case SM_CXSCREEN: 685 rc = ScreenWidth; 686 break; 687 688 case SM_CYSCREEN: 689 rc = ScreenHeight; 690 break; 691 692 case SM_CXVSCROLL: 693 rc = OSLibWinQuerySysValue(OSLIB_HWND_DESKTOP,SVOS_CXVSCROLL); 694 break; 695 696 case SM_CYHSCROLL: 697 rc = OSLibWinQuerySysValue(OSLIB_HWND_DESKTOP,SVOS_CYHSCROLL); 698 break; 699 700 case SM_CYCAPTION: 701 rc = OSLibWinQuerySysValue(OSLIB_HWND_DESKTOP,SVOS_CYTITLEBAR); 702 break; 703 704 case SM_CXBORDER: 705 rc = 1; 706 break; 707 708 case SM_CYBORDER: 709 rc = 1; 710 break; 711 712 //CB: todo: add missing metrics 713 684 714 case SM_CXICONSPACING: //TODO: size of grid cell for large icons 685 715 rc = OSLibWinQuerySysValue(OSLIB_HWND_DESKTOP,SVOS_CXICON); … … 698 728 rc = FALSE; 699 729 break; 700 case SM_CXEDGE: //size of 3D window edge (not supported)730 case SM_CXEDGE: //size of 3D window edge 701 731 rc = 1; 702 732 break; … … 789 819 rc = 0; 790 820 break; 791 case SM_CXSCREEN:792 793 return ScreenWidth;794 case SM_CYSCREEN:795 return ScreenHeight;796 821 797 822 case SM_CXVIRTUALSCREEN: -
trunk/src/user32/win32wbase.cpp
r1845 r1849 1 /* $Id: win32wbase.cpp,v 1.9 6 1999-11-26 00:05:49 sandervlExp $ */1 /* $Id: win32wbase.cpp,v 1.97 1999-11-26 17:06:09 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 1648 1648 rc = GetClipBox( (HDC)wParam, &rect ); 1649 1649 if ((rc == SIMPLEREGION) || (rc == COMPLEXREGION)) 1650 FillRect( (HDC)wParam, &rect, windowClass->getBackgroundBrush()); 1650 { 1651 HBRUSH hBrush = windowClass->getBackgroundBrush(); 1652 1653 if (hBrush <= (HBRUSH)(SYSCOLOR_GetLastColor()+1)) hBrush = GetSysColorBrush(hBrush-1); 1654 1655 FillRect( (HDC)wParam, &rect, hBrush); 1656 } 1651 1657 1652 1658 return 1;
Note:
See TracChangeset
for help on using the changeset viewer.