Changeset 2340 for trunk/src/user32/new/pmframe.cpp
- Timestamp:
- Jan 6, 2000, 6:05:52 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/new/pmframe.cpp
r2335 r2340 1 /* $Id: pmframe.cpp,v 1. 5 2000-01-05 21:25:05cbratschi Exp $ */1 /* $Id: pmframe.cpp,v 1.6 2000-01-06 17:05:52 cbratschi Exp $ */ 2 2 /* 3 3 * Win32 Frame Managment Code for OS/2 … … 302 302 case WM_BUTTON3UP: 303 303 case WM_BUTTON3DBLCLK: 304 { 305 SWP swp; 306 307 WinQueryWindowPos(hwnd,&swp); 308 if ((swp.fl & SWP_MINIMIZE) == SWP_MINIMIZE) 309 goto RunDefFrameProc; 304 310 if (win32wnd->IsWindowCreated()) 305 311 { … … 308 314 } 309 315 return (MRESULT)TRUE; 316 } 310 317 311 318 case WM_BUTTON2MOTIONSTART: … … 323 330 case WM_MOUSEMOVE: 324 331 { 332 SWP swp; 333 334 WinQueryWindowPos(hwnd,&swp); 335 if ((swp.fl & SWP_MINIMIZE) == SWP_MINIMIZE) 336 goto RunDefFrameProc; 325 337 //OS/2 Window coordinates -> Win32 Window coordinates 326 338 if (win32wnd->IsWindowCreated()) … … 333 345 { 334 346 DWORD res; 347 SWP swp; 348 349 WinQueryWindowPos(hwnd,&swp); 350 if ((swp.fl & SWP_MINIMIZE) == SWP_MINIMIZE) 351 goto RunDefFrameProc; 335 352 336 353 // Only send this message if the window is enabled … … 355 372 356 373 case WM_PAINT: 357 //CB: todo: call defframe if minimized 374 { 375 SWP swp; 376 377 WinQueryWindowPos(hwnd,&swp); 378 if ((swp.fl & SWP_MINIMIZE) == SWP_MINIMIZE) 379 goto RunDefFrameProc; 358 380 dprintf(("PMFRAME: WM_PAINT")); 359 381 if (win32wnd->IsWindowCreated()) 360 382 win32wnd->MsgNCPaint(); 361 383 goto RunDefWndProc; 384 } 362 385 363 386 case WM_SIZE: … … 453 476 454 477 win32wnd->setWindowRect(wp.x, wp.y, wp.x+wp.cx, wp.y+wp.cy); 455 dprintf(("CB: %d %d %d %d",wp.x,wp.y,wp.x+wp.cx,wp.y+wp.cy)); 478 456 479 if(win32wnd->CanReceiveSizeMsgs()) 457 480 win32wnd->MsgPosChanged((LPARAM)&wp); … … 472 495 UINT res = CVR_ALIGNLEFT | CVR_ALIGNTOP; 473 496 474 //CB: todo: use WM_NCCALCSIZE 497 //CB: todo: use WM_NCCALCSIZE result 475 498 if (win32wnd->getWindowClass()) 476 499 { … … 483 506 } else res |= CVR_REDRAW; 484 507 485 //CB: PM updates window frame (and unfortunately all other frame controls)508 //CB: PM sets client window position 486 509 RestoreOS2TIB(); 487 510 OldFrameProc(hwnd,msg,mp1,mp2);
Note:
See TracChangeset
for help on using the changeset viewer.