Changeset 894 for trunk/src


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

.

Location:
trunk/src/shell32/new
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/new/shell32.def

    r892 r894  
    1 ; $Id: shell32.def,v 1.2 1999-09-09 11:33:18 phaller Exp $
     1; $Id: shell32.def,v 1.3 1999-09-09 15:44:23 phaller Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    3636;   SHILCreateFromPath                = _SHILCreateFromPath@12                @28
    3737    PathIsRoot                        = _PathIsRootAW@4                       @29
    38     PathBuildRoot                     = _PathBuildRootAW@8                    @30
     38    PathBuildRoot                     = _PathBuildRoot@8                      @30
    3939    PathFindExtension                 = _PathFindExtensionAW@4                @31
    4040    PathAddBackslash                  = _PathAddBackslashAW@4                 @32
     
    5151    PathIsExe                         = _PathIsExeAW@4                        @43
    5252    DoEnvironmentSubstA               = _DoEnvironmentSubstA@8                @44
    53     PathFileExists                    = _PathFileExistsAW@4                   @45
     53    PathFileExists                    = _PathFileExists@4                     @45
    5454    PathMatchSpec                     = _PathMatchSpecAW@8                    @46
    5555;   PathMakeUniqueName                = _PathMakeUniqueNameAW@20              @47
     
    125125;   FileMenu_DeleteItemByCmd          = _FileMenu_DeleteItemByCmd@8           @117
    126126;   FileMenu_Destroy                  = _FileMenu_Destroy@4                   @118
    127     IsLFNDrive                        = _IsLFNDrive@4                         @119
     127    IsLFNDrive                        = _IsLFNDriveA@4                        @119
    128128;   FileMenu_AbortInitMenu            = _FileMenu_AbortInitMenu@0             @120
    129129    SHFlushClipboard                  = _SHFlushClipboard@0                   @121
  • 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";
  • trunk/src/shell32/new/shlview.cpp

    r815 r894  
    2727#include "wine/obj_dragdrop.h"
    2828#include "wine/undocshell.h"
     29#include "docobj.h"
    2930#include "shresdef.h"
    3031#include "spy.h"
Note: See TracChangeset for help on using the changeset viewer.