- Timestamp:
- Nov 7, 2001, 4:36:10 PM (24 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r7266 r7294 1 /* $Id: pmwindow.cpp,v 1.16 3 2001-10-29 13:54:39 achimhaExp $ */1 /* $Id: pmwindow.cpp,v 1.164 2001-11-07 15:36:09 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 247 247 //****************************************************************************** 248 248 //CD notification window class 249 #define TIMERID_DRIVEPOLL 0x1717 249 250 //****************************************************************************** 250 251 MRESULT EXPENTRY Win32CDWindowProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) … … 299 300 drive[0]++; 300 301 } 301 WinStartTimer(hab, hwnd, 17, 32*60);302 //// WinStartTimer(hab, hwnd, 17, 32*3);303 //// WinStartTimer(hab, hwnd, 17, 5000);302 WinStartTimer(hab, hwnd, TIMERID_DRIVEPOLL, 32*60); 303 //// WinStartTimer(hab, hwnd, TIMERID_DRIVEPOLL, 32*3); 304 //// WinStartTimer(hab, hwnd, TIMERID_DRIVEPOLL, 5000); 304 305 rc = (MRESULT)FALSE; 305 306 break; … … 373 374 374 375 case WM_DESTROY: 375 WinStopTimer(hab, hwnd, 17);376 WinStopTimer(hab, hwnd, TIMERID_DRIVEPOLL); 376 377 break; 377 378 -
trunk/src/user32/scroll.cpp
r7182 r7294 1 /* $Id: scroll.cpp,v 1.4 5 2001-10-24 09:53:14sandervl Exp $ */1 /* $Id: scroll.cpp,v 1.46 2001-11-07 15:36:10 sandervl Exp $ */ 2 2 /* 3 3 * Scrollbar control … … 1269 1269 dprintf(("USER32: SetScrollInfo %x %d",hwnd,nBar)); 1270 1270 1271 if(info == NULL) return 0; //Last error not changed (NT4, SP6) 1272 1271 1273 if (!(infoPtr = SCROLL_GetInfoPtr(hwnd,nBar))) return 0; 1272 1274 if (info->fMask & ~(SIF_ALL | SIF_DISABLENOSCROLL)) return 0; … … 1347 1349 { 1348 1350 new_flags = infoPtr->flags; 1349 if (infoPtr->MinVal >= infoPtr->MaxVal - MAX( infoPtr->Page-1, 0 1351 if (infoPtr->MinVal >= infoPtr->MaxVal - MAX( infoPtr->Page-1, 0)) 1350 1352 { 1351 1353 /* Hide or disable scroll-bar */ … … 1539 1541 SCROLLBAR_INFO *infoPtr; 1540 1542 1543 dprintf(("GetScrollRange %x %d %x %x", hwnd, nBar, lpMin, lpMax)); 1541 1544 infoPtr = SCROLL_GetInfoPtr(hwnd,nBar); 1542 1545 if (!infoPtr) … … 1665 1668 return FALSE; 1666 1669 } 1670 1671 dprintf(("GetScrollBarInfo %x %d %x", hwnd, idObject, psbi)); 1667 1672 1668 1673 INT nBar,arrowSize; -
trunk/src/user32/win32dlg.cpp
r7241 r7294 1 /* $Id: win32dlg.cpp,v 1.7 1 2001-10-28 10:38:13sandervl Exp $ */1 /* $Id: win32dlg.cpp,v 1.72 2001-11-07 15:36:10 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Dialog Code for OS/2 … … 1081 1081 BOOL Win32Dialog::endDialog(int retval) 1082 1082 { 1083 HWND hwnd = getWindowHandle(); 1084 1083 1085 dialogFlags |= DF_END; 1084 1086 idResult = retval; 1085 1087 1088 // BOOL wasEnabled = (dlgInfo.flags & DF_OWNERENABLED); 1089 1090 // if (wasEnabled && (owner = GetWindow( hwnd, GW_OWNER ))) 1091 // DIALOG_EnableOwner( owner ); 1092 1093 /* Windows sets the focus to the dialog itself in EndDialog */ 1094 1095 if (::IsChild(hwnd, GetFocus())) 1096 ::SetFocus( hwnd ); 1097 1098 /* Don't have to send a ShowWindow(SW_HIDE), just do 1099 SetWindowPos with SWP_HIDEWINDOW as done in Windows */ 1100 1101 ::SetWindowPos(hwnd, (HWND)0, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE 1102 | SWP_NOZORDER | SWP_NOACTIVATE | SWP_HIDEWINDOW); 1103 1104 /* unblock dialog loop */ 1105 PostMessageA(hwnd, WM_NULL, 0, 0); 1086 1106 return TRUE; 1087 1107 } -
trunk/src/user32/win32wbase.cpp
r7241 r7294 1 /* $Id: win32wbase.cpp,v 1.29 7 2001-10-28 10:38:13sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.298 2001-11-07 15:36:10 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 2471 2471 return TRUE; 2472 2472 } 2473 2473 2474 #if 0 2474 2475 /* Fix redundant flags */ … … 2483 2484 } 2484 2485 2485 if(cx < 0) cx = 0;2486 if(cy < 0) cy = 0;2486 //// if(cx < 0) cx = 0; 2487 //// if(cy < 0) cy = 0; 2487 2488 2488 2489 if((rectWindow.right - rectWindow.left == cx) && (rectWindow.bottom - rectWindow.top == cy)) { … … 2506 2507 } 2507 2508 } 2509 /* TODO: Check hwndInsertAfter */ 2510 2508 2511 #endif 2509 2512 … … 2646 2649 wpos->y = rectWindow.top; 2647 2650 } 2648 2651 2649 2652 WINDOWPOS wpOld = *wpos; 2650 SendInternalMessageA(WM_WINDOWPOSCHANGING, 0, (LPARAM)wpos); 2653 if(!(wpos->flags & SWP_NOSENDCHANGING)) 2654 SendInternalMessageA(WM_WINDOWPOSCHANGING, 0, (LPARAM)wpos); 2651 2655 2652 2656 if ((wpos->hwndInsertAfter != wpOld.hwndInsertAfter) || … … 3447 3451 3448 3452 hwndActive = OSLibWinQueryActiveWindow(); 3449 3450 3453 return OS2ToWin32Handle(hwndActive); 3451 3454 }
Note:
See TracChangeset
for help on using the changeset viewer.