Changeset 2582 for trunk/src/user32/dc.cpp
- Timestamp:
- Jan 31, 2000, 11:30:52 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/dc.cpp
r2569 r2582 1 /* $Id: dc.cpp,v 1.4 0 2000-01-29 20:46:52sandervl Exp $ */1 /* $Id: dc.cpp,v 1.41 2000-01-31 22:30:51 sandervl Exp $ */ 2 2 3 3 /* … … 68 68 BOOL changePageXForm(Win32BaseWindow *wnd, pDCData pHps, PPOINTL pValue, int x, int y, PPOINTL pPrev); 69 69 LONG clientHeight(Win32BaseWindow *wnd, HWND hwnd, pDCData pHps); 70 71 HWND WIN32API GetDesktopWindow(void); 70 72 71 73 //****************************************************************************** … … 663 665 BOOL creatingOwnDC = FALSE; 664 666 PS_Type psType; 667 668 if(hwnd == 0) { 669 dprintf(("error: GetDCEx window %x not found", hwnd)); 670 O32_SetLastError(ERROR_INVALID_WINDOW_HANDLE); 671 return 0; 672 } 665 673 666 674 if (hwnd) … … 683 691 hWindow = wnd->getOS2WindowHandle(); 684 692 } 685 else686 hWindow = HWND_DESKTOP;687 693 688 694 //SvL: Hack for memory.exe (doesn't get repainted properly otherwise) … … 809 815 HDC WIN32API GetDC (HWND hwnd) 810 816 { 817 if(!hwnd) 818 return GetDCEx( GetDesktopWindow(), 0, DCX_CACHE_W | DCX_WINDOW_W ); 811 819 return GetDCEx (hwnd, NULL, 0); 812 820 } … … 815 823 HDC WIN32API GetWindowDC (HWND hwnd) 816 824 { 817 return GetDCEx (hwnd, NULL, DCX_WINDOW_W); 825 if (!hwnd) hwnd = GetDesktopWindow(); 826 return GetDCEx (hwnd, NULL, DCX_USESTYLE_W | DCX_WINDOW_W); 818 827 } 819 828 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.