- Timestamp:
- Oct 7, 1999, 9:38:27 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmwindow.cpp
r1171 r1172 1 /* $Id: pmwindow.cpp,v 1. 19 1999-10-07 18:24:53 achimhaExp $ */1 /* $Id: pmwindow.cpp,v 1.20 1999-10-07 19:38:27 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Managment Code for OS/2 … … 271 271 HWND hParent = NULLHANDLE, hFrame = NULLHANDLE; 272 272 LONG yDelta = pswp->cy - pswpo->cy; 273 LONG xDelta = pswp->cx - pswpo->cx; 273 274 ULONG classStyle; 274 275 … … 296 297 classStyle = win32wnd->getClass()->getStyle(); 297 298 298 if ( (yDelta != 0) || (pswp->cx != pswpo->cx))299 if (yDelta != 0 || xDelta != 0) 299 300 { 300 301 HENUM henum = WinBeginEnumWindows(pswp->hwnd); … … 306 307 { 307 308 #if 0 308 if (mdiClient )309 {309 if (mdiClient ) 310 { 310 311 continue; 311 }312 } 312 313 #endif 313 WinQueryWindowPos(hwnd, &(swp[i])); 314 swp[i].y += yDelta; 315 316 if (i == 9) 317 { 318 WinSetMultWindowPos(GetThreadHAB(), swp, 10); 319 i = 0; 320 } 321 else 322 { 323 i++; 324 } 314 WinQueryWindowPos(hwnd, &(swp[i])); 315 316 #ifdef DEBUG 317 Win32BaseWindow *window = Win32BaseWindow::GetWindowFromOS2Handle(hwnd); 318 dprintf(("ENUMERATE %x delta %d (%d,%d) (%d,%d)", (window) ? window->getWindowHandle() : hwnd, 319 yDelta, swp[i].x, swp[i].y, swp[i].cx, swp[i].cy)); 320 #endif 321 322 swp[i].cy += yDelta; 323 swp[i].fl = SWP_SIZE; 324 325 if (i == 9) 326 { 327 WinSetMultWindowPos(GetThreadHAB(), swp, 10); 328 i = 0; 329 } 330 else 331 { 332 i++; 333 } 325 334 } 326 335 … … 333 342 { 334 343 POINT pt; 344 #if 1 345 if(GetCaretPos (&pt) == TRUE) 346 { 347 pt.y -= yDelta; 348 SetCaretPos (pt.x, pt.y); 349 } 350 #else 335 351 GetCaretPos (&pt); 336 352 pt.y -= yDelta; 337 353 SetCaretPos (pt.x, pt.y); 354 #endif 338 355 } 339 356 win32wnd->MsgPosChanged((LPARAM)&wp); … … 372 389 373 390 OSLibMapSWPtoWINDOWPOS(&swp, &wp, &swpo, NULLHANDLE, hFrame); 391 392 dprintf(("OS2: WM_MOVE %x %x (%d,%d) (%d,%d)", hwnd, swp.fl, swp.x, swp.y, swp.cx, swp.cy)); 374 393 375 394 wp.flags &= ~SWP_NOMOVE_W; … … 776 795 PSZ wintext; 777 796 778 if(wndpars->fsStatus & (WPM_CCHTEXT | WPM_TEXT)) 797 if(wndpars->fsStatus & (WPM_CCHTEXT | WPM_TEXT)) 779 798 { 780 799 if(wndpars->fsStatus & WPM_CCHTEXT)
Note:
See TracChangeset
for help on using the changeset viewer.