Ignore:
Timestamp:
Sep 9, 1999, 5:44:24 PM (26 years ago)
Author:
phaller
Message:

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/new/shell32_main.cpp

    r857 r894  
    302302}
    303303
     304
    304305/*************************************************************************
    305306 * ExtractIconA                         [SHELL32.133]
     
    307308HICON WINAPI ExtractIconA( HINSTANCE hInstance, LPCSTR lpszExeFileName,
    308309        UINT nIconIndex )
    309 {   HGLOBAL16 handle = InternalExtractIcon16(hInstance,lpszExeFileName,nIconIndex, 1);
     310{
     311#if 0
     312//@@@PH
     313HGLOBAL handle = InternalExtractIconA(hInstance,lpszExeFileName,nIconIndex, 1);
    310314    TRACE_(shell)("\n");
    311315    if( handle )
    312316    {
    313         HICON16* ptr = (HICON16*)GlobalLock16(handle);
    314         HICON16  hIcon = *ptr;
    315 
    316         GlobalFree16(handle);
     317        HICON* ptr = (HICON*)GlobalLock(handle);
     318        HICON  hIcon = *ptr;
     319
     320        GlobalFree(handle);
    317321        return hIcon;
    318322    }
     323#endif
    319324    return 0;
    320325}
     
    539544    case WM_LBTRACKPOINT:
    540545        hWndCtl = GetDlgItem(hWnd, IDC_LISTBOX);
    541         if( (INT16)GetKeyState16( VK_CONTROL ) < 0 )
     546        if( (INT)GetKeyState( VK_CONTROL ) < 0 )
    542547      { if( DragDetect( hWndCtl, *((LPPOINT)&lParam) ) )
    543548        { INT idx = SendMessageA( hWndCtl, LB_GETCURSEL, 0, 0 );
    544549                if( idx != -1 )
    545550          { INT length = SendMessageA( hWndCtl, LB_GETTEXTLEN, (WPARAM)idx, 0 );
    546                     HGLOBAL16 hMemObj = GlobalAlloc16( GMEM_MOVEABLE, length + 1 );
    547                     char* pstr = (char*)GlobalLock16( hMemObj );
     551                    HGLOBAL hMemObj = GlobalAlloc( GMEM_MOVEABLE, length + 1 );
     552                    char* pstr = (char*)GlobalLock( hMemObj );
    548553
    549554                    if( pstr )
    550             { HCURSOR16 hCursor = LoadCursor16( 0, MAKEINTRESOURCE16(OCR_DRAGOBJECT) );
     555            { HCURSOR hCursor = LoadCursorA( 0, (LPCSTR)OCR_DRAGOBJECT );
    551556                        SendMessageA( hWndCtl, LB_GETTEXT, (WPARAM)idx, (LPARAM)pstr );
    552557                        SendMessageA( hWndCtl, LB_DELETESTRING, (WPARAM)idx, 0 );
    553558                        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) )
    555561                            SendMessageA( hWndCtl, LB_ADDSTRING, (WPARAM)-1, (LPARAM)pstr );
    556562                    }
    557563            if( hMemObj )
    558               GlobalFree16( hMemObj );
     564              GlobalFree( hMemObj );
    559565                }
    560566            }
     
    585591      { LPDRAGINFO lpDragInfo = (LPDRAGINFO)PTR_SEG_TO_LIN((SEGPTR)lParam);
    586592            if( lpDragInfo && lpDragInfo->wFlags == DRAGOBJ_DATA && lpDragInfo->hList )
    587         { char* pstr = (char*)GlobalLock16( (HGLOBAL16)(lpDragInfo->hList) );
     593        { char* pstr = (char*)GlobalLock( (HGLOBAL)(lpDragInfo->hList) );
    588594                if( pstr )
    589595          { static char __appendix_str[] = " with";
Note: See TracChangeset for help on using the changeset viewer.