Changeset 898 for trunk/src


Ignore:
Timestamp:
Sep 9, 1999, 10:48:40 PM (26 years ago)
Author:
phaller
Message:

.

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

Legend:

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

    r891 r898  
    3232//#include "syslevel.h"
    3333#include "imagelist.h"
     34#include "shell32_main.h"
    3435
    3536#include <heapstring.h>
     
    182183    GlobalUnlock(hDrop);
    183184    return i;
     185}
     186
     187
     188/*****************************************************************************
     189 * Name      : UINT DragQueryFileAorW
     190 * Purpose   :
     191 * Parameters: HDROP  hDrop    - drop structure handle
     192 *             UINT   iFile    - index of file to query
     193 *             LPTSTR lpszFile - target buffer
     194 *             UINT   cch      - target buffer size
     195 * Variables :
     196 * Result    :
     197 * Remark    :
     198 * Status    : UNTESTED STUB
     199 *
     200 * Author    : Patrick Haller [Tue, 1999/06/09 20:00]
     201 *****************************************************************************/
     202
     203UINT WIN32API DragQueryFileAorW(HDROP  hDrop,
     204                                UINT   iFile,
     205                                LPTSTR lpszFile,
     206                                UINT   cch)
     207{
     208  dprintf(("SHELL32: DragQueryFileAorW(%08xh,%08xh,%s,%08xh).\n",
     209           hDrop,
     210           iFile,
     211           lpszFile,
     212           cch));
     213
     214  // @@@PH maybe they want automatic determination here
     215  if (VERSION_OsIsUnicode())
     216    return DragQueryFileW(hDrop, iFile, (LPWSTR)lpszFile, cch);
     217  else
     218    return DragQueryFileA(hDrop, iFile, lpszFile, cch);
    184219}
    185220
  • trunk/src/shell32/new/shell32.def

    r897 r898  
    1 ; $Id: shell32.def,v 1.4 1999-09-09 20:17:45 phaller Exp $
     1; $Id: shell32.def,v 1.5 1999-09-09 20:48:40 phaller Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    7878;   SHCreateDefClassObject            = _SHCreateDefClassObject@?             @70
    7979    Shell_GetImageList                = _Shell_GetImageList@8                 @71
    80     Shell_GetCachedImageIndex         = _Shell_GetCachedImageIndex@12         @72
     80    Shell_GetCachedImageIndex         = _Shell_GetCachedImageIndexAW@12       @72
     81    Shell_GetCachedImageIndexW        = _Shell_GetCachedImageIndexW@12
     82    Shell_GetCachedImageIndexA        = _Shell_GetCachedImageIndexA@12
    8183    SHShellFolderView_Message         = _SHShellFolderView_Message@12         @73
    8284;   SHCreateStdEnumFmtEtc             = _SHCreateStdEnumFmtEtc@?              @74
  • trunk/src/shell32/new/shell32_main.cpp

    r897 r898  
    396396#define         DROP_FIELD_TOP          (-15)
    397397#define         DROP_FIELD_HEIGHT       15
    398 
    399 extern HICON hIconTitleFont;
    400398
    401399static BOOL __get_dropline( HWND hWnd, LPRECT lprect )
     
    467465 * ShellExecuteA                        [SHELL32.245]
    468466 */
     467
    469468HINSTANCE WINAPI ShellExecuteA( HWND hWnd, LPCSTR lpOperation,
    470469                                    LPCSTR lpFile, LPCSTR lpParameters,
    471470                                    LPCSTR lpDirectory, INT iShowCmd )
    472 {   TRACE_(shell)("\n");
    473     return ShellExecute16( hWnd, lpOperation, lpFile, lpParameters,
    474                            lpDirectory, iShowCmd );
    475 }
     471{   HINSTANCE retval=31;
     472    char old_dir[1024];
     473    char cmd[256];
     474
     475    TRACE_(shell)("(%04x,'%s','%s','%s','%s',%x)\n",
     476                hWnd, lpOperation ? lpOperation:"<null>", lpFile ? lpFile:"<null>",
     477                lpParameters ? lpParameters : "<null>",
     478                lpDirectory ? lpDirectory : "<null>", iShowCmd);
     479
     480    if (lpFile==NULL) return 0; /* should not happen */
     481    if (lpOperation==NULL) /* default is open */
     482      lpOperation="open";
     483
     484    if (lpDirectory)
     485    { GetCurrentDirectoryA( sizeof(old_dir), old_dir );
     486        SetCurrentDirectoryA( lpDirectory );
     487    }
     488
     489    retval = SHELL_FindExecutable( lpFile, lpOperation, cmd );
     490
     491    if (retval > 32)  /* Found */
     492    {
     493        if (lpParameters)
     494        {
     495            strcat(cmd," ");
     496            strcat(cmd,lpParameters);
     497        }
     498
     499        TRACE_(shell)("starting %s\n",cmd);
     500        retval = WinExec( cmd, iShowCmd );
     501    }
     502    if (lpDirectory)
     503      SetCurrentDirectoryA( old_dir );
     504    return retval;
     505}
     506
    476507
    477508/*************************************************************************
     
    518549                hWndCtl = GetDlgItem(hWnd, IDC_LISTBOX);
    519550                SendMessageA( hWndCtl, WM_SETREDRAW, 0, 0 );
    520                 SendMessageA( hWndCtl, WM_SETFONT, hIconTitleFont, 0 );
    521551                while (*pstr)
    522552          { SendMessageA( hWndCtl, LB_ADDSTRING, (WPARAM)-1, (LPARAM)*pstr );
     
    685715
    686716/*************************************************************************
     717 * Shell_NotifyIcon                     [SHELL32.297]
     718 *      FIXME
     719 *      This function is supposed to deal with the systray.
     720 *      Any ideas on how this is to be implimented?
     721 */
     722BOOL WINAPI Shell_NotifyIconA(DWORD dwMessage, PNOTIFYICONDATAA pnid )
     723{   TRACE_(shell)("\n");
     724    return FALSE;
     725}
     726
     727/*************************************************************************
     728 * Shell_NotifyIcon                     [SHELL32.?]
     729 *      FIXME
     730 *      This function is supposed to deal with the systray.
     731 *      Any ideas on how this is to be implimented?
     732 */
     733BOOL WINAPI Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW pnid )
     734{   TRACE_(shell)("\n");
     735    return FALSE;
     736}
     737
     738
     739/*************************************************************************
    687740 * Shell_NotifyIcon                     [SHELL32.296]
    688741 *      FIXME
     
    692745BOOL WINAPI Shell_NotifyIcon(   DWORD dwMessage, PNOTIFYICONDATAA pnid )
    693746{   TRACE_(shell)("\n");
    694     return FALSE;
    695 }
    696 
    697 /*************************************************************************
    698  * Shell_NotifyIcon                     [SHELL32.297]
    699  *      FIXME
    700  *      This function is supposed to deal with the systray.
    701  *      Any ideas on how this is to be implimented?
    702  */
    703 BOOL WINAPI Shell_NotifyIconA(DWORD dwMessage, PNOTIFYICONDATAA pnid )
    704 {   TRACE_(shell)("\n");
    705     return FALSE;
     747  if (VERSION_OsIsUnicode())
     748    return(Shell_NotifyIconW(dwMessage,(PNOTIFYICONDATAW)pnid));
     749  else
     750    return(Shell_NotifyIconA(dwMessage,pnid));
    706751}
    707752
  • trunk/src/shell32/new/shellguid.cpp

    r860 r898  
    2525#include <wine/obj_extracticon.h>
    2626#include <wine/obj_shellextinit.h>
    27 //#include <docobj.h>
     27#include <docobj.h>
    2828
    2929/*
  • trunk/src/shell32/new/shellord.cpp

    r797 r898  
    864864}
    865865/*************************************************************************
     866 * SHRegQueryValueA                             [NT4.0:SHELL32.?]
     867 *
     868 */
     869HRESULT WINAPI SHRegQueryValueA (HKEY hkey, LPSTR lpszSubKey,
     870                                 LPSTR lpszData, LPDWORD lpcbData )
     871{       WARN("0x%04x %s %p %p semi-stub\n",
     872                hkey, lpszSubKey, lpszData, lpcbData);
     873        return RegQueryValueA( hkey, lpszSubKey, lpszData, (LPLONG)lpcbData );
     874}
     875
     876/*************************************************************************
    866877 * SHRegQueryValueExA                           [SHELL32.509]
    867878 *
  • trunk/src/shell32/new/shlview.cpp

    r897 r898  
    3939
    4040DEFAULT_DEBUG_CHANNEL(shell)
     41
    4142
    4243typedef struct
Note: See TracChangeset for help on using the changeset viewer.