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

.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.