- Timestamp:
- Jul 15, 2002, 12:19:16 PM (23 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/USER32.DEF
r8347 r8872 1 ; $Id: USER32.DEF,v 1.7 2 2002-04-30 14:54:05sandervl Exp $1 ; $Id: USER32.DEF,v 1.73 2002-07-15 10:19:16 sandervl Exp $ 2 2 3 3 LIBRARY USER32 INITINSTANCE TERMINSTANCE … … 701 701 _BITMAP_GetWidthBytes@8 @2024 NONAME 702 702 _selectClientArea@4 @2025 NONAME 703 _IsSystemBrush@4 @2026 NONAME704 _IsSystemPen@4 @2027 NONAME705 703 706 704 _CreateFakeWindowEx@8 @2028 NONAME -
trunk/src/user32/menu.cpp
r8861 r8872 1 /* $Id: menu.cpp,v 1.4 8 2002-07-12 19:49:21sandervl Exp $*/1 /* $Id: menu.cpp,v 1.49 2002-07-15 10:16:28 sandervl Exp $*/ 2 2 /* 3 3 * Menu functions … … 313 313 { 314 314 #ifdef __WIN32OS2__ 315 if(Obj GetHandleType(hMenu) == USEROBJ_MENU) {315 if(ObjQueryHandleType(hMenu) == HNDL_MENU) { 316 316 POPUPMENU *menu; 317 317 318 menu = (POPUPMENU *)Obj GetHandleData(hMenu, USEROBJ_MENU);318 menu = (POPUPMENU *)ObjQueryHandleData(hMenu, HNDL_MENU); 319 319 return menu; 320 320 } … … 4004 4004 #ifdef __WIN32OS2__ 4005 4005 if (!(menu = (LPPOPUPMENU)HeapAlloc(GetProcessHeap(),0,sizeof(POPUPMENU)))) return 0; 4006 if(ObjAllocateHandle(&hMenu, (DWORD)menu, USEROBJ_MENU) == FALSE) return 0;4006 if(ObjAllocateHandle(&hMenu, (DWORD)menu, HNDL_MENU) == FALSE) return 0; 4007 4007 #else 4008 4008 if (!(hMenu = (HMENU)HeapAlloc(GetProcessHeap(),0,sizeof(POPUPMENU)))) return 0; … … 4061 4061 #ifdef __WIN32OS2__ 4062 4062 HeapFree(GetProcessHeap(),0,(LPVOID)lppop); 4063 Obj FreeHandle(hMenu);4063 ObjDeleteHandle(hMenu, HNDL_MENU); 4064 4064 #else 4065 4065 HeapFree(GetProcessHeap(),0,(LPVOID)hMenu); -
trunk/src/user32/syscolor.cpp
r7500 r8872 1 /* $Id: syscolor.cpp,v 1.3 1 2001-11-30 13:53:50sandervl Exp $ */1 /* $Id: syscolor.cpp,v 1.32 2002-07-15 10:16:28 sandervl Exp $ */ 2 2 3 3 /* … … 25 25 #include "options.h" 26 26 #include "oslibwin.h" 27 #include <objhandle.h> 27 28 28 29 #define DBG_LOCALLOG DBG_syscolor … … 130 131 if (SysColorPens[index]) DeleteObject(SysColorPens[index]); 131 132 SysColorPens[index] = CreatePen(PS_SOLID, 1, color); 133 134 // Application can't delete system pens 135 ObjSetHandleFlag(SysColorPens[index], OBJHANDLE_FLAG_NODELETE, TRUE); 136 132 137 /* set brush */ 133 138 if (SysColorBrushes[index]) DeleteObject(SysColorBrushes[index]); 134 139 SysColorBrushes[index] = CreateSolidBrush(color); 140 141 // Application can't delete system brushes 142 ObjSetHandleFlag(SysColorBrushes[index], OBJHANDLE_FLAG_NODELETE, TRUE); 135 143 } 136 144 //****************************************************************************** … … 356 364 //****************************************************************************** 357 365 //****************************************************************************** 358 BOOL WIN32API IsSystemPen(HPEN hPen)359 {360 for(int i=0;i<NUM_SYS_COLORS;i++) {361 if(SysColorPens[i] == hPen) {362 return TRUE;363 }364 }365 return FALSE;366 }367 //******************************************************************************368 //******************************************************************************369 BOOL WIN32API IsSystemBrush(HBRUSH hBrush)370 {371 for(int i=0;i<NUM_SYS_COLORS;i++) {372 if(SysColorBrushes[i] == hBrush) {373 return TRUE;374 }375 }376 return FALSE;377 }378 //******************************************************************************379 //****************************************************************************** -
trunk/src/user32/user32dbg.def
r8347 r8872 1 ; $Id: user32dbg.def,v 1. 5 2002-04-30 14:54:06 sandervl Exp $1 ; $Id: user32dbg.def,v 1.6 2002-07-15 10:19:16 sandervl Exp $ 2 2 3 3 LIBRARY USER32 INITINSTANCE TERMINSTANCE … … 700 700 _BITMAP_GetWidthBytes@8 @2024 NONAME 701 701 _selectClientArea@4 @2025 NONAME 702 _IsSystemBrush@4 @2026 NONAME703 _IsSystemPen@4 @2027 NONAME704 702 705 703 _CreateFakeWindowEx@8 @2028 NONAME -
trunk/src/user32/winicon.cpp
r8533 r8872 1 /* $Id: winicon.cpp,v 1.3 4 2002-05-31 09:54:05sandervl Exp $ */1 /* $Id: winicon.cpp,v 1.35 2002-07-15 10:16:29 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Icon Code for OS/2 … … 233 233 #ifdef __WIN32OS2__ 234 234 HICON hIcon; 235 if(ObjAllocateHandle(&hIcon, (DWORD)hObj, USEROBJ_CURSORICON) == FALSE) {235 if(ObjAllocateHandle(&hIcon, (DWORD)hObj, HNDL_CURSORICON) == FALSE) { 236 236 GlobalFree(hObj); 237 237 dprintf(("ERROR: CreateIconIndirect ObjAllocateHandle failed!!")); … … 267 267 CURSORICONINFO *ciconinfo; 268 268 269 hIcon = Obj GetHandleData(hIcon, USEROBJ_CURSORICON);269 hIcon = ObjQueryHandleData(hIcon, HNDL_CURSORICON); 270 270 if(hIcon == -1) { 271 271 dprintf(("ERROR: Invalid cursor/icon!")); … … 289 289 290 290 #ifdef __WIN32OS2__ 291 hIcon = Obj GetHandleData(hIcon, USEROBJ_CURSORICON);291 hIcon = ObjQueryHandleData(hIcon, HNDL_CURSORICON); 292 292 if(hIcon == -1) { 293 293 dprintf(("ERROR: Invalid cursor/icon!")); … … 426 426 427 427 #ifdef __WIN32OS2__ 428 hCursor = Obj GetHandleData(hCursor, USEROBJ_CURSORICON);428 hCursor = ObjQueryHandleData(hCursor, HNDL_CURSORICON); 429 429 if(hCursor == -1) { 430 430 dprintf(("ERROR: Invalid cursor/icon!")); … … 566 566 #ifdef __WIN32OS2__ 567 567 HICON hIcon; 568 if(ObjAllocateHandle(&hIcon, (DWORD)handle, USEROBJ_CURSORICON) == FALSE) {568 if(ObjAllocateHandle(&hIcon, (DWORD)handle, HNDL_CURSORICON) == FALSE) { 569 569 GlobalFree(handle); 570 570 dprintf(("ERROR: CreateCursorIconIndirect ObjAllocateHandle failed!!")); … … 628 628 629 629 HICON hIcon; 630 if(ObjAllocateHandle(&hIcon, (DWORD)hObj, USEROBJ_CURSORICON) == FALSE) {630 if(ObjAllocateHandle(&hIcon, (DWORD)hObj, HNDL_CURSORICON) == FALSE) { 631 631 GlobalUnlock( hObj ); 632 632 GlobalFree(hObj); … … 1171 1171 if(hObj) { 1172 1172 HICON hIcon; 1173 if(ObjAllocateHandle(&hIcon, (DWORD)hObj, USEROBJ_CURSORICON) == FALSE) {1173 if(ObjAllocateHandle(&hIcon, (DWORD)hObj, HNDL_CURSORICON) == FALSE) { 1174 1174 GlobalFree(hObj); 1175 1175 dprintf(("ERROR: CURSORICON_Load ObjAllocateHandle failed!!")); … … 1203 1203 1204 1204 #ifdef __WIN32OS2__ 1205 HICON hIcon = Obj GetHandleData(handle, USEROBJ_CURSORICON);1205 HICON hIcon = ObjQueryHandleData(handle, HNDL_CURSORICON); 1206 1206 if(hIcon == -1) { 1207 1207 dprintf(("ERROR: Invalid cursor/icon!")); … … 1234 1234 GlobalUnlock(hIcon); 1235 1235 retv = GlobalFree( hIcon ); 1236 Obj FreeHandle(handle);1236 ObjDeleteHandle(handle, HNDL_CURSORICON); 1237 1237 1238 1238 return (flags & CID_RESOURCE)? retv : TRUE; … … 1254 1254 HGLOBAL hNew; 1255 1255 1256 handle = Obj GetHandleData(handle, USEROBJ_CURSORICON);1256 handle = ObjQueryHandleData(handle, HNDL_CURSORICON); 1257 1257 if(handle == -1) { 1258 1258 dprintf(("ERROR: Invalid cursor/icon!")); … … 1277 1277 #ifdef __WIN32OS2__ 1278 1278 HICON hIcon; 1279 if(ObjAllocateHandle(&hIcon, (DWORD)hNew, USEROBJ_CURSORICON) == FALSE) {1279 if(ObjAllocateHandle(&hIcon, (DWORD)hNew, HNDL_CURSORICON) == FALSE) { 1280 1280 GlobalFree(hNew); 1281 1281 dprintf(("ERROR: CURSORICON_Copy ObjAllocateHandle failed!!")); … … 1317 1317 1318 1318 #ifdef __WIN32OS2__ 1319 HICON hIcon = Obj GetHandleData(Handle, USEROBJ_CURSORICON);1319 HICON hIcon = ObjQueryHandleData(Handle, HNDL_CURSORICON); 1320 1320 if(hIcon == -1) { 1321 1321 dprintf(("ERROR: Invalid cursor/icon!"));
Note:
See TracChangeset
for help on using the changeset viewer.