Changeset 962 for trunk/src/user32/window.cpp
- Timestamp:
- Sep 16, 1999, 8:00:44 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/window.cpp
r949 r962 1 /* $Id: window.cpp,v 1. 1 1999-09-15 23:19:02 sandervlExp $ */1 /* $Id: window.cpp,v 1.2 1999-09-16 18:00:43 dengert Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 300 300 //****************************************************************************** 301 301 //****************************************************************************** 302 #if 0 302 303 BOOL WIN32API UpdateWindow(HWND hwnd) 303 304 { … … 312 313 return window->UpdateWindow(); 313 314 } 315 #endif 314 316 //****************************************************************************** 315 317 //****************************************************************************** … … 518 520 //****************************************************************************** 519 521 //****************************************************************************** 522 523 #if 0 520 524 BOOL WIN32API RedrawWindow( HWND arg1, const RECT * arg2, HRGN arg3, UINT arg4) 521 525 { … … 531 535 return(rc); 532 536 } 537 #endif 533 538 //****************************************************************************** 534 539 //****************************************************************************** … … 993 998 curpid = GetCurrentProcessId(); 994 999 995 henum = OSLibWinBeginEnumWindows(OSLIB_HWND_DESKTOP); 1000 henum = OSLibWinBeginEnumWindows(OSLIB_HWND_DESKTOP); 996 1001 while ((hwndNext = OSLibWinGetNextWindow(henum)) != 0) 997 1002 { 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1003 OSLibWinQueryWindowProcess(hwndNext, &pid, &tid); 1004 if(!(curpid == pid && dwThreadId == tid)) 1005 continue; 1006 1007 window = Win32BaseWindow::GetWindowFromHandle(hwndNext); 1008 if(window == NULL) { 1009 //OS/2 window or non-frame window, so skip it 1010 continue; 1011 } 1012 if((rc = lpfn(window->getWindowHandle(), lParam)) == FALSE) 1013 break; 1009 1014 } 1010 1015 OSLibWinEndEnumWindows (henum); … … 1028 1033 } 1029 1034 1030 henum = OSLibWinBeginEnumWindows(OSLIB_HWND_DESKTOP); 1035 henum = OSLibWinBeginEnumWindows(OSLIB_HWND_DESKTOP); 1031 1036 while ((hwndNext = OSLibWinGetNextWindow(henum)) != 0) 1032 1037 { 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1038 window = Win32BaseWindow::GetWindowFromHandle(hwndNext); 1039 if(window == NULL) { 1040 //OS/2 window or non-frame window, so skip it 1041 continue; 1042 } 1043 if((rc = lpfn(window->getWindowHandle(), lParam)) == FALSE) 1044 { 1045 rc = FALSE; 1046 break; 1047 } 1043 1048 } 1044 1049 OSLibWinEndEnumWindows(henum); … … 1057 1062 1058 1063 do { 1059 henum = OSLibWinBeginEnumWindows(hwndParent);1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1064 henum = OSLibWinBeginEnumWindows(hwndParent); 1065 while ((hwndNext = OSLibWinGetNextWindow(henum)) != 0) 1066 { 1067 window = Win32BaseWindow::GetWindowFromHandle(hwndNext); 1068 if(window == NULL) { 1069 //OS/2 window or non-frame window, so skip it 1070 continue; 1071 } 1072 if((rc = lpfn(window->getWindowHandle(), lParam)) == FALSE) { 1073 goto Abort; 1074 } 1075 } 1076 if(hwndParent == OSLIB_HWND_OBJECT) 1077 break; 1078 hwndParent = OSLIB_HWND_OBJECT; 1079 OSLibWinEndEnumWindows(henum); 1075 1080 } 1076 1081 while(TRUE); … … 1093 1098 //****************************************************************************** 1094 1099 //****************************************************************************** 1100 #if 0 1095 1101 BOOL WIN32API InvalidateRect(HWND hWnd, const RECT *lpRect, BOOL bErase) 1096 1102 { … … 1109 1115 else return OSLibWinInvalidateRect(hWnd,NULL,bErase); 1110 1116 } 1117 #endif 1111 1118 //****************************************************************************** 1112 1119 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.