Changeset 2388 for trunk/src/user32/win32wbasepaint.cpp
- Timestamp:
- Jan 9, 2000, 5:52:55 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/win32wbasepaint.cpp
r2384 r2388 1 /* $Id: win32wbasepaint.cpp,v 1. 2 2000-01-09 15:56:05 sandervl Exp $ */1 /* $Id: win32wbasepaint.cpp,v 1.3 2000-01-09 16:52:55 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Window Base Class for OS/2 … … 121 121 state = GetMenuState(hSysMenu, SC_MAXIMIZE, MF_BYCOMMAND); 122 122 } 123 SetCapture( Win32Hwnd);124 hdc = GetWindowDC( Win32Hwnd);123 SetCapture(getWindowHandle()); 124 hdc = GetWindowDC(getWindowHandle()); 125 125 if (wParam == HTMINBUTTON) 126 126 DrawMinButton(hdc,TRUE,FALSE); … … 132 132 BOOL oldstate = pressed; 133 133 134 GetMessageA(&msg, Win32Hwnd,0,0);134 GetMessageA(&msg, getWindowHandle(), 0, 0); 135 135 pressed = (HandleNCHitTest(msg.pt) == wParam); 136 136 if (pressed != oldstate) … … 143 143 } 144 144 145 while (msg.message != WM_ LBUTTONUP);145 while (msg.message != WM_NCLBUTTONUP); 146 146 147 147 if (wParam == HTMINBUTTON) … … 151 151 152 152 ReleaseCapture(); 153 ReleaseDC( Win32Hwnd,hdc);153 ReleaseDC(getWindowHandle(), hdc); 154 154 /* If the item minimize or maximize of the sysmenu are not there */ 155 155 /* or if the style is not present, do nothing */ … … 179 179 if((state & MF_DISABLED) || (state & MF_GRAYED) || (state == 0xFFFFFFFF)) 180 180 return; 181 hdc = GetWindowDC( Win32Hwnd);182 SetCapture( Win32Hwnd);181 hdc = GetWindowDC(getWindowHandle()); 182 SetCapture(getWindowHandle()); 183 183 DrawCloseButton(hdc,TRUE,FALSE); 184 184 do … … 186 186 BOOL oldstate = pressed; 187 187 188 GetMessageA(&msg, Win32Hwnd,0,0);188 GetMessageA(&msg, getWindowHandle(), 0, 0); 189 189 pressed = (HandleNCHitTest(msg.pt) == wParam); 190 190 191 if (pressed != oldstate) 191 192 DrawCloseButton(hdc, pressed, FALSE); 192 } while (msg.message != WM_LBUTTONUP); 193 } 194 while (msg.message != WM_NCLBUTTONUP); 195 193 196 DrawCloseButton(hdc,FALSE,FALSE); 194 197 ReleaseCapture(); 195 ReleaseDC(Win32Hwnd,hdc); 196 if (!pressed) return; 198 ReleaseDC(getWindowHandle(), hdc); 199 200 if (!pressed) 201 return; 202 197 203 SendInternalMessageA(WM_SYSCOMMAND,SC_CLOSE,*(LPARAM*)&msg.pt); 198 204 } … … 551 557 if(hIcon == 0) 552 558 if (!(dwStyle & DS_MODALFRAME)) 553 hIcon = LoadImageA(0, MAKEINTRESOURCEA(OIC_ WINEICON), IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR);559 hIcon = LoadImageA(0, MAKEINTRESOURCEA(OIC_ODINICON), IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR); 554 560 555 561 if (hIcon) … … 594 600 HDC hdcMem; 595 601 596 if( !(flags & WIN_MANAGED) )597 {598 602 BITMAP bmp; 599 603 HBITMAP hBmp, hOldBmp; … … 616 620 SelectObject (hdcMem, hOldBmp); 617 621 DeleteDC (hdcMem); 618 }619 622 } 620 623 //****************************************************************************** … … 625 628 HDC hdcMem; 626 629 627 if( !(flags & WIN_MANAGED))628 {629 630 BITMAP bmp; 630 631 HBITMAP hBmp,hOldBmp; … … 652 653 SelectObject (hdcMem, hOldBmp); 653 654 DeleteDC( hdcMem ); 654 }655 655 } 656 656 //****************************************************************************** … … 661 661 HDC hdcMem; 662 662 663 if( !(flags & WIN_MANAGED))664 665 {666 663 BITMAP bmp; 667 664 HBITMAP hBmp,hOldBmp; … … 692 689 SelectObject (hdcMem, hOldBmp); 693 690 DeleteDC( hdcMem ); 694 }695 691 } 696 692 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.