Changeset 1333 for trunk/src/user32/pmframe.cpp
- Timestamp:
- Oct 17, 1999, 2:17:46 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/pmframe.cpp
r1303 r1333 1 /* $Id: pmframe.cpp,v 1. 6 1999-10-14 21:37:44 sandervlExp $ */1 /* $Id: pmframe.cpp,v 1.7 1999-10-17 12:17:44 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Frame Managment Code for OS/2 … … 183 183 184 184 wndchild = Win32BaseWindow::GetWindowFromOS2FrameHandle(pswp->hwnd); 185 if(wndchild && wndchild->isChild()) 185 if(wndchild && wndchild->isChild()) 186 186 { 187 187 #if 0 188 188 SWP swp = *pswp; 189 189 190 191 192 193 190 MRESULT rc = OldFrameProc(hwnd, msg, mp1, mp2); 191 pswp->x = swp.x; 192 pswp->y = swp.y; 193 pswp->fl = swp.fl; 194 194 #endif 195 196 197 195 dprintf(("PMFRAME: WM_ADJUSTWINDOWPOS %x %x %x (%d,%d) (%d,%d)", hwnd, pswp->hwnd, pswp->fl, pswp->x, pswp->y, pswp->cx, pswp->cy)); 196 RestoreOS2TIB(); 197 return (MRESULT)0; 198 198 } 199 199 goto RunDefFrameProc; … … 272 272 273 273 GetSizeBox(win32wnd,&rect); 274 hps = WinGet PS(hwnd);274 hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN); 275 275 DrawSizeBox(hps,rect); 276 276 WinReleasePS(hps); … … 289 289 SetWin32TIB(); 290 290 291 WinQueryWindowRect(hwnd,&rect); 292 rect.xRight = rect.xRight-rect.xLeft; 293 rect.yTop = rect.yTop-rect.yBottom; 294 rect.xLeft = rect.yBottom = 0; 291 295 hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN); 292 WinQueryWindowRect(hwnd,&rect);293 296 DrawFrame(hps,&rect,win32wnd); 294 WinFillRect(hps,&rect,SYSCLR_DIALOGBACKGROUND);295 297 WinReleasePS(hps); 296 298 … … 316 318 317 319 GetSizeBox(win32wnd,&rect); 318 hps = WinGet PS(hwnd);320 hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN); 319 321 DrawSizeBox(hps,rect); 320 322 WinReleasePS(hps); … … 323 325 return res; 324 326 } else goto RunDefFrameProc; 325 } 326 //SvL: I doubt this is necessary. Just look at winhlp32. First it draws the 327 // the background gray and then white. 328 #if 0 329 else 327 } else 330 328 { 331 329 RECTL rect; 332 HPS hps = WinBeginPaint(hwnd,0,&rect); 333 330 HPS hps; 331 332 RestoreOS2TIB(); 333 OldFrameProc(hwnd,msg,mp1,mp2); 334 SetWin32TIB(); 335 336 WinQueryWindowRect(hwnd,&rect); 337 rect.xRight = rect.xRight-rect.xLeft; 338 rect.yTop = rect.yTop-rect.yBottom; 339 rect.xLeft = rect.yBottom = 0; 340 hps = WinGetClipPS(hwnd,0,PSF_CLIPCHILDREN); 334 341 DrawFrame(hps,&rect,win32wnd); 335 WinFillRect(hps,&rect,SYSCLR_DIALOGBACKGROUND); 336 WinEndPaint(hps); 342 WinReleasePS(hps); 337 343 338 344 RestoreOS2TIB(); 339 345 return (MRESULT)0; 340 346 } 341 #endif342 347 343 348 default:
Note:
See TracChangeset
for help on using the changeset viewer.