- Timestamp:
- Jan 31, 2000, 11:30:52 PM (26 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/controls.cpp
r2469 r2582 1 /* $Id: controls.cpp,v 1. 8 2000-01-18 20:10:32sandervl Exp $ */1 /* $Id: controls.cpp,v 1.9 2000-01-31 22:30:51 sandervl Exp $ */ 2 2 /* File: controls.cpp -- Win32 common controls 3 3 * … … 28 28 void CONTROLS_Register() 29 29 { 30 dprintf(("Register DESKTOP class")); 31 controlAtoms[DESKTOP_CONTROL] = DESKTOP_Register(); 32 if (!controlAtoms[DESKTOP_CONTROL]) dprintf(("failed!!!")); 33 34 //SvL: Create Desktop Window 35 CreateWin32Desktop(); 36 30 37 dprintf(("Register BUTTON class")); 31 38 controlAtoms[BUTTON_CONTROL] = BUTTON_Register(); … … 63 70 controlAtoms[DIALOG_CONTROL] = DIALOG_Register(); 64 71 if (!controlAtoms[DIALOG_CONTROL]) dprintf(("failed!!!")); 65 66 dprintf(("Register DESKTOP class"));67 controlAtoms[DESKTOP_CONTROL] = DESKTOP_Register();68 if (!controlAtoms[DESKTOP_CONTROL]) dprintf(("failed!!!"));69 72 70 73 dprintf(("Register WINSWITCH class")); -
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 //****************************************************************************** -
trunk/src/user32/dc.h
r2469 r2582 1 /* $Id: dc.h,v 1.1 0 2000-01-18 20:08:09sandervl Exp $ */1 /* $Id: dc.h,v 1.11 2000-01-31 22:30:51 sandervl Exp $ */ 2 2 /* 3 3 * public dc functions … … 95 95 #define DCX_INTERSECTUPDATE_W 0x00000200L 96 96 #define DCX_LOCKWINDOWUPDATE_W 0x00000400L 97 #define DCX_USESTYLE_W 0x00010000L 97 98 #define DCX_VALIDATE_W 0x00200000L 98 99 -
trunk/src/user32/initterm.cpp
r2469 r2582 1 /* $Id: initterm.cpp,v 1.1 8 2000-01-18 20:10:36sandervl Exp $ */1 /* $Id: initterm.cpp,v 1.19 2000-01-31 22:30:51 sandervl Exp $ */ 2 2 3 3 /* … … 115 115 MONITOR_Initialize(&MONITOR_PrimaryMonitor); 116 116 117 //SvL: Create Desktop Window118 if(CreateWin32Desktop() == FALSE) {119 return 0UL;120 }121 122 117 break; 123 118 case 1 : -
trunk/src/user32/menu.cpp
r2577 r2582 1 /* $Id: menu.cpp,v 1.1 3 2000-01-30 18:48:27sandervl Exp $*/1 /* $Id: menu.cpp,v 1.14 2000-01-31 22:30:52 sandervl Exp $*/ 2 2 /* 3 3 * Menu functions … … 1705 1705 1706 1706 //debug_print_menuitem("MENU_SetItemData from: ", item, ""); 1707 1707 1708 1708 1709 if (IS_STRING_ITEM(flags)) … … 4125 4126 const MENUITEMINFOA *lpmii) 4126 4127 { 4127 dprintf(("USER32: SetMenuItemInfoA "));4128 dprintf(("USER32: SetMenuItemInfoA %x %d %d %x", hmenu, item, bypos, lpmii)); 4128 4129 4129 4130 return SetMenuItemInfo_common(MENU_FindItem(&hmenu, &item, bypos? MF_BYPOSITION : 0), … … 4244 4245 MENUITEM *item = MENU_InsertItem(hMenu, uItem, bypos ? MF_BYPOSITION : 0 ); 4245 4246 4246 dprintf(("USER32: InsertMenuItemA "));4247 dprintf(("USER32: InsertMenuItemA %x %d %d %x", hMenu, uItem, bypos, lpmii->wID)); 4247 4248 4248 4249 return SetMenuItemInfo_common(item, lpmii, FALSE); -
trunk/src/user32/oslibwin.h
r2469 r2582 1 /* $Id: oslibwin.h,v 1.3 5 2000-01-18 20:08:12 sandervl Exp $ */1 /* $Id: oslibwin.h,v 1.36 2000-01-31 22:30:52 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 30 30 #endif 31 31 32 //SvL: Must be the same as HWND_DESKTOP/OBJECT in pmwin.h! 32 33 #define OSLIB_HWND_DESKTOP 1 33 34 #define OSLIB_HWND_OBJECT 2
Note:
See TracChangeset
for help on using the changeset viewer.