Changeset 894 for trunk/src/shell32/new/shell32_main.cpp
- Timestamp:
- Sep 9, 1999, 5:44:24 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/new/shell32_main.cpp
r857 r894 302 302 } 303 303 304 304 305 /************************************************************************* 305 306 * ExtractIconA [SHELL32.133] … … 307 308 HICON WINAPI ExtractIconA( HINSTANCE hInstance, LPCSTR lpszExeFileName, 308 309 UINT nIconIndex ) 309 { HGLOBAL16 handle = InternalExtractIcon16(hInstance,lpszExeFileName,nIconIndex, 1); 310 { 311 #if 0 312 //@@@PH 313 HGLOBAL handle = InternalExtractIconA(hInstance,lpszExeFileName,nIconIndex, 1); 310 314 TRACE_(shell)("\n"); 311 315 if( handle ) 312 316 { 313 HICON 16* ptr = (HICON16*)GlobalLock16(handle);314 HICON 16hIcon = *ptr;315 316 GlobalFree 16(handle);317 HICON* ptr = (HICON*)GlobalLock(handle); 318 HICON hIcon = *ptr; 319 320 GlobalFree(handle); 317 321 return hIcon; 318 322 } 323 #endif 319 324 return 0; 320 325 } … … 539 544 case WM_LBTRACKPOINT: 540 545 hWndCtl = GetDlgItem(hWnd, IDC_LISTBOX); 541 if( (INT 16)GetKeyState16( VK_CONTROL ) < 0 )546 if( (INT)GetKeyState( VK_CONTROL ) < 0 ) 542 547 { if( DragDetect( hWndCtl, *((LPPOINT)&lParam) ) ) 543 548 { INT idx = SendMessageA( hWndCtl, LB_GETCURSEL, 0, 0 ); 544 549 if( idx != -1 ) 545 550 { INT length = SendMessageA( hWndCtl, LB_GETTEXTLEN, (WPARAM)idx, 0 ); 546 HGLOBAL 16 hMemObj = GlobalAlloc16( GMEM_MOVEABLE, length + 1 );547 char* pstr = (char*)GlobalLock 16( hMemObj );551 HGLOBAL hMemObj = GlobalAlloc( GMEM_MOVEABLE, length + 1 ); 552 char* pstr = (char*)GlobalLock( hMemObj ); 548 553 549 554 if( pstr ) 550 { HCURSOR 16 hCursor = LoadCursor16( 0, MAKEINTRESOURCE16(OCR_DRAGOBJECT));555 { HCURSOR hCursor = LoadCursorA( 0, (LPCSTR)OCR_DRAGOBJECT ); 551 556 SendMessageA( hWndCtl, LB_GETTEXT, (WPARAM)idx, (LPARAM)pstr ); 552 557 SendMessageA( hWndCtl, LB_DELETESTRING, (WPARAM)idx, 0 ); 553 558 UpdateWindow( hWndCtl ); 554 if( !DragObject16((HWND16)hWnd, (HWND16)hWnd, DRAGOBJ_DATA, 0, (WORD)hMemObj, hCursor) ) 559 //@@@PH DragObject16 experimentally replaced by DragObject 560 if( !DragObject(hWnd, hWnd, DRAGOBJ_DATA, hMemObj, hCursor) ) 555 561 SendMessageA( hWndCtl, LB_ADDSTRING, (WPARAM)-1, (LPARAM)pstr ); 556 562 } 557 563 if( hMemObj ) 558 GlobalFree 16( hMemObj );564 GlobalFree( hMemObj ); 559 565 } 560 566 } … … 585 591 { LPDRAGINFO lpDragInfo = (LPDRAGINFO)PTR_SEG_TO_LIN((SEGPTR)lParam); 586 592 if( lpDragInfo && lpDragInfo->wFlags == DRAGOBJ_DATA && lpDragInfo->hList ) 587 { char* pstr = (char*)GlobalLock 16( (HGLOBAL16)(lpDragInfo->hList) );593 { char* pstr = (char*)GlobalLock( (HGLOBAL)(lpDragInfo->hList) ); 588 594 if( pstr ) 589 595 { static char __appendix_str[] = " with";
Note:
See TracChangeset
for help on using the changeset viewer.