Changeset 8872 for trunk/src/user32/winicon.cpp
- Timestamp:
- Jul 15, 2002, 12:19:16 PM (23 years ago)
- File:
-
- 1 edited
-
trunk/src/user32/winicon.cpp (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.
