Changeset 2611 for trunk/src/user32/win32wbase.cpp
- Timestamp:
- Feb 3, 2000, 6:13:03 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbase.cpp
r2569 r2611 1 /* $Id: win32wbase.cpp,v 1.1 49 2000-01-29 20:46:52 sandervlExp $ */1 /* $Id: win32wbase.cpp,v 1.150 2000-02-03 17:13:01 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 651 651 if(!(flags & WIN_NEED_SIZE)) 652 652 { 653 LPARAM lParam;654 655 653 SendInternalMessageA(WM_SIZE, SIZE_RESTORED, 656 654 MAKELONG(rectClient.right-rectClient.left, 657 655 rectClient.bottom-rectClient.top)); 658 656 659 if(getParent()) {//in parent coordinates 660 POINT point; 661 662 point.x = rectClient.left; 663 point.y = rectClient.top; 664 MapWindowPoints(getWindowHandle(), getParent()->getWindowHandle(), &point, 1); 665 666 lParam = MAKELONG(point.x, point.y); 667 } 668 else {//in screen coordinates 669 lParam = MAKELONG(rectWindow.left+rectClient.left, rectWindow.top+rectClient.top); 670 } 671 672 SendInternalMessageA(WM_MOVE, 0, lParam); 657 SendInternalMessageA(WM_MOVE,0,MAKELONG(rectClient.left,rectClient.top)); 673 658 } 674 659 … … 684 669 } 685 670 671 //CB: timew32.exe, blockcad.exe -> children not shown!!! 686 672 if (cs->style & WS_VISIBLE) ShowWindow(sw); 687 673 … … 1280 1266 { 1281 1267 LPCSTR lpsz = (LPCSTR)lParam; 1282 CHAR* oldNameA = windowNameA; 1283 WCHAR* oldNameW = windowNameW;1284 1268 1269 if(windowNameA) free(windowNameA); 1270 if(windowNameW) free(windowNameW); 1285 1271 if (lParam) 1286 1272 { … … 1298 1284 } 1299 1285 dprintf(("WM_SETTEXT of %x to %s\n", Win32Hwnd, lParam)); 1300 if ((dwStyle & WS_CAPTION) && (lstrcmpA(oldNameA,windowNameA) != 0))1301 { 1302 UpdateCaptionText();1286 if ((dwStyle & WS_CAPTION) == WS_CAPTION) 1287 { 1288 HandleNCPaint((HRGN)1); 1303 1289 OSLibWinSetWindowText(OS2HwndFrame,(LPSTR)windowNameA); 1304 1290 } 1305 1306 if(oldNameA) free(oldNameA);1307 if(oldNameW) free(oldNameW);1308 1291 1309 1292 return TRUE; … … 1428 1411 if (!(wpos->flags & SWP_NOMOVE) && !(wpos->flags & SWP_NOCLIENTMOVE)) 1429 1412 { 1430 SendInternalMessageA(WM_MOVE, 0, MAKELONG( wpos->x + rectClient.left, wpos->y +rectClient.top));1413 SendInternalMessageA(WM_MOVE, 0, MAKELONG(rectClient.left,rectClient.top)); 1431 1414 } 1432 1415 if (!(wpos->flags & SWP_NOSIZE) && !(wpos->flags & SWP_NOCLIENTSIZE)) … … 1696 1679 LPWSTR lpsz = (LPWSTR)lParam; 1697 1680 1698 CHAR* oldNameA = windowNameA; 1699 WCHAR* oldNameW = windowNameW; 1700 1681 if(windowNameA) free(windowNameA); 1682 if(windowNameW) free(windowNameW); 1701 1683 if (lParam) 1702 1684 { … … 1714 1696 } 1715 1697 dprintf(("WM_SETTEXT of %x\n",Win32Hwnd)); 1716 if ((dwStyle & WS_CAPTION) && (lstrcmpW(oldNameW,windowNameW) != 0))1717 { 1718 UpdateCaptionText();1698 if ((dwStyle & WS_CAPTION) == WS_CAPTION) 1699 { 1700 HandleNCPaint((HRGN)1); 1719 1701 OSLibWinSetWindowText(OS2HwndFrame,(LPSTR)windowNameA); 1720 1702 } 1721 1722 if(oldNameA) free(oldNameA);1723 if(oldNameW) free(oldNameW);1724 1703 1725 1704 return TRUE; … … 1978 1957 MAKELONG(rectClient.right-rectClient.left, 1979 1958 rectClient.bottom-rectClient.top)); 1980 DWORD lParam; 1981 1982 if(getParent()) {//in parent coordinates 1983 POINT point; 1984 1985 point.x = rectClient.left; 1986 point.y = rectClient.top; 1987 MapWindowPoints(getWindowHandle(), getParent()->getWindowHandle(), &point, 1); 1988 1989 lParam = MAKELONG(point.x, point.y); 1990 } 1991 else {//in screen coordinates 1992 lParam = MAKELONG(rectWindow.left+rectClient.left, rectWindow.top+rectClient.top); 1993 } 1994 SendInternalMessageA(WM_MOVE, 0, lParam); 1959 SendInternalMessageA(WM_MOVE,0,MAKELONG(rectClient.left,rectClient.top)); 1995 1960 } 1996 1961 switch(nCmdShow)
Note:
See TracChangeset
for help on using the changeset viewer.