Changeset 7635 for trunk/src/gdi32/objhandle.cpp
- Timestamp:
- Dec 15, 2001, 7:51:16 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/objhandle.cpp
r7330 r7635 1 /* $Id: objhandle.cpp,v 1. 19 2001-11-13 15:42:06sandervl Exp $ */1 /* $Id: objhandle.cpp,v 1.20 2001-12-15 18:50:27 sandervl Exp $ */ 2 2 /* 3 3 * Win32 Handle Management Code for OS/2 … … 26 26 #include <unicode.h> 27 27 #include "font.h" 28 #include <stats.h> 28 29 29 30 #define DBG_LOCALLOG DBG_objhandle … … 328 329 DWORD WIN32API GetObjectType( HGDIOBJ hObj) 329 330 { 330 dprintf2(("GDI32: GetObjectType %x", hObj)); 331 DWORD objtype; 332 331 333 //TODO: must use 16 bits gdi object handles 332 334 if(HIWORD(hObj) == 0) { … … 334 336 } 335 337 if(ObjGetHandleType(hObj) == GDIOBJ_REGION) { 338 dprintf2(("GDI32: GetObjectType %x REGION", hObj)); 336 339 SetLastError(ERROR_SUCCESS); 337 340 return OBJ_REGION; 338 341 } 339 return O32_GetObjectType(hObj); 342 objtype = O32_GetObjectType(hObj); 343 dprintf2(("GDI32: GetObjectType %x objtype %d", hObj, objtype)); 344 return objtype; 340 345 } 341 346 //****************************************************************************** … … 344 349 BOOL WIN32API DeleteObject(HANDLE hObj) 345 350 { 351 DWORD objtype; 352 346 353 dprintf(("GDI32: DeleteObject %x", hObj)); 347 354 … … 353 360 354 361 //System objects can't be deleted (TODO: any others?? (fonts?))!!!!) 355 switch (GetObjectType(hObj)) 362 objtype = GetObjectType(hObj); 363 switch (objtype) 356 364 { 357 365 case OBJ_PEN: … … 385 393 } 386 394 395 STATS_DeleteObject(hObj, objtype); 396 387 397 if(ObjGetHandleType(hObj) == GDIOBJ_REGION) 388 398 { … … 398 408 //****************************************************************************** 399 409 //****************************************************************************** 410 int WIN32API EnumObjects( HDC hdc, int objType, GOBJENUMPROC objFunc, LPARAM lParam) 411 { 412 //calling convention differences 413 dprintf(("!ERROR!: GDI32: EnumObjects STUB")); 414 // return O32_EnumObjects(arg1, arg2, arg3, arg4); 415 return 0; 416 } 417 //****************************************************************************** 418 //****************************************************************************** 419 HANDLE WIN32API GetCurrentObject( HDC hdc, UINT arg2) 420 { 421 dprintf(("GDI32: GetCurrentObject %x %x", hdc, arg2)); 422 return (HANDLE)O32_GetCurrentObject(hdc, arg2); 423 } 424 //****************************************************************************** 425 //****************************************************************************** 400 426 BOOL WIN32API SetObjectOwner( HGDIOBJ arg1, int arg2 ) 401 427 { … … 406 432 //****************************************************************************** 407 433 //****************************************************************************** 434 BOOL WIN32API UnrealizeObject( HGDIOBJ hObject) 435 { 436 dprintf(("GDI32: UnrealizeObject %x", hObject)); 437 return O32_UnrealizeObject(hObject); 438 } 439 //****************************************************************************** 440 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.