- Timestamp:
- Oct 18, 1999, 1:59:58 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r1336 r1351 1 /* $Id: dc.cpp,v 1.1 5 1999-10-17 15:46:07 sandervl Exp $ */1 /* $Id: dc.cpp,v 1.16 1999-10-18 11:59:57 sandervl Exp $ */ 2 2 3 3 /* … … 1011 1011 sendEraseBkgnd (wnd); 1012 1012 1013 #if 1 1014 WinUpdateWindow(wnd->getOS2FrameWindowHandle()); 1015 #else 1013 1016 wnd->MsgPaint(0); 1017 #endif 1014 1018 1015 1019 SetFS(sel); -
trunk/src/user32/listbox.cpp
r1348 r1351 1 /* $Id: listbox.cpp,v 1. 8 1999-10-18 10:54:03sandervl Exp $ */1 /* $Id: listbox.cpp,v 1.9 1999-10-18 11:59:57 sandervl Exp $ */ 2 2 /* 3 3 * Listbox controls … … 199 199 else 200 200 { 201 info.nMin = 0; 202 info.nMax = descr->nb_items - 1; 201 203 info.nPos = descr->top_item; 202 203 204 info.nPage = LISTBOX_GetCurrentPageSize( hwnd, descr ); 204 205 info.fMask = SIF_RANGE | SIF_POS | SIF_PAGE; 205 info.nMin = 0;206 info.nMax = descr->nb_items;207 208 206 if (descr->style & LBS_DISABLENOSCROLL) 209 207 info.fMask |= SIF_DISABLENOSCROLL; -
trunk/src/user32/win32wbase.cpp
r1348 r1351 1 /* $Id: win32wbase.cpp,v 1.5 3 1999-10-18 10:54:04sandervl Exp $ */1 /* $Id: win32wbase.cpp,v 1.54 1999-10-18 11:59:58 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 607 607 { 608 608 hwndHorzScroll = OSLibWinQueryScrollBarHandle(OS2HwndFrame, OSLIB_HSCROLL); 609 OSLibWinShowScrollBar(OS2HwndFrame, hwndHorzScroll, OSLIB_HSCROLL, FALSE, TRUE);609 // OSLibWinShowScrollBar(OS2HwndFrame, hwndHorzScroll, OSLIB_HSCROLL, FALSE, TRUE); 610 610 } 611 611 612 612 if (dwStyle & WS_VSCROLL) { 613 613 hwndVertScroll = OSLibWinQueryScrollBarHandle(OS2HwndFrame, OSLIB_VSCROLL); 614 OSLibWinShowScrollBar(OS2HwndFrame, hwndVertScroll, OSLIB_VSCROLL, FALSE, TRUE);614 // OSLibWinShowScrollBar(OS2HwndFrame, hwndVertScroll, OSLIB_VSCROLL, FALSE, TRUE); 615 615 } 616 616 … … 2171 2171 } 2172 2172 //****************************************************************************** 2173 //TODO: Should not enumerate children that are created during the enumeration! 2174 //****************************************************************************** 2175 BOOL Win32BaseWindow::EnumChildWindows(WNDENUMPROC lpfn, LPARAM lParam) 2176 { 2177 BOOL rc = TRUE; 2178 HWND hwnd; 2179 Win32BaseWindow *prevchild = 0, *child = 0; 2180 2181 dprintf(("EnumChildWindows of %x parameter %x %x (%x)", getWindowHandle(), lpfn, lParam, getFirstChild())); 2182 for (child = (Win32BaseWindow *)getFirstChild(); child; child = (Win32BaseWindow *)child->getNextChild()) 2183 { 2184 dprintf(("EnumChildWindows: enumerating child %x", child->getWindowHandle())); 2185 hwnd = child->getWindowHandle(); 2186 if(lpfn(hwnd, lParam) == FALSE) 2187 { 2188 rc = FALSE; 2189 break; 2190 } 2191 //check if the window still exists 2192 if(!::IsWindow(hwnd)) 2193 { 2194 child = prevchild; 2195 continue; 2196 } 2197 if(child->getFirstChild() != NULL) 2198 { 2199 dprintf(("EnumChildWindows: Enumerate children of %x", child->getWindowHandle())); 2200 if(child->EnumChildWindows(lpfn, lParam) == FALSE) 2201 { 2202 rc = FALSE; 2203 break; 2204 } 2205 } 2206 prevchild = child; 2207 } 2208 return rc; 2209 } 2210 //****************************************************************************** 2173 2211 //****************************************************************************** 2174 2212 Win32BaseWindow *Win32BaseWindow::FindWindowById(int id) -
trunk/src/user32/win32wbase.h
r1346 r1351 1 /* $Id: win32wbase.h,v 1. 29 1999-10-17 20:18:46sandervl Exp $ */1 /* $Id: win32wbase.h,v 1.30 1999-10-18 11:59:58 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 203 203 BOOL fUnicode = 0); 204 204 205 BOOL EnumChildWindows(WNDENUMPROC lpfn, LPARAM lParam); 206 205 207 static HWND Win32ToOS2Handle(HWND hwnd); 206 208 static HWND Win32ToOS2FrameHandle(HWND hwnd); -
trunk/src/user32/window.cpp
r1346 r1351 1 /* $Id: window.cpp,v 1.2 0 1999-10-17 20:18:46sandervl Exp $ */1 /* $Id: window.cpp,v 1.21 1999-10-18 11:59:58 sandervl Exp $ */ 2 2 /* 3 3 * Win32 window apis for OS/2 … … 1274 1274 BOOL WIN32API EnumChildWindows(HWND hwnd, WNDENUMPROC lpfn, LPARAM lParam) 1275 1275 { 1276 Win32BaseWindow *window , *parentwindow;1276 Win32BaseWindow *window; 1277 1277 BOOL rc = TRUE; 1278 1278 ULONG henum; 1279 1279 HWND hwndNext; 1280 1280 1281 dprintf(("EnumChildWindows %x %x\n", hwnd, lParam)); 1282 1283 parentwindow = Win32BaseWindow::GetWindowFromHandle(hwnd); 1284 if(!parentwindow) { 1285 dprintf(("EnumChildWindows, window %x not found", hwnd)); 1286 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 1281 if(lpfn == NULL) { 1282 dprintf(("EnumChildWindows invalid parameter %x %x\n", hwnd, lParam)); 1283 SetLastError(ERROR_INVALID_PARAMETER); 1287 1284 return FALSE; 1288 1285 } 1289 1290 henum = OSLibWinBeginEnumWindows(OSLIB_HWND_DESKTOP); 1291 while ((hwndNext = OSLibWinGetNextWindow(henum)) != 0) 1292 { 1293 window = Win32BaseWindow::GetWindowFromOS2Handle(hwndNext); 1294 if(window == NULL) { 1295 window = Win32BaseWindow::GetWindowFromOS2FrameHandle(hwndNext); 1296 if(!window) { 1297 //OS/2 window or non-frame window, so skip it 1298 continue; 1299 } 1300 } 1301 if((rc = lpfn(window->getWindowHandle(), lParam)) == FALSE) 1302 { 1303 rc = FALSE; 1304 break; 1305 } 1286 window = Win32BaseWindow::GetWindowFromHandle(hwnd); 1287 if(!window) { 1288 dprintf(("EnumChildWindows, window %x not found", hwnd)); 1289 SetLastError(ERROR_INVALID_WINDOW_HANDLE); 1290 return FALSE; 1306 1291 } 1307 OSLibWinEndEnumWindows(henum); 1308 return rc; 1292 return window->EnumChildWindows(lpfn, lParam); 1309 1293 } 1310 1294 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.