Changeset 898 for trunk/src/shell32/new/shell32_main.cpp
- Timestamp:
- Sep 9, 1999, 10:48:40 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/new/shell32_main.cpp
r897 r898 396 396 #define DROP_FIELD_TOP (-15) 397 397 #define DROP_FIELD_HEIGHT 15 398 399 extern HICON hIconTitleFont;400 398 401 399 static BOOL __get_dropline( HWND hWnd, LPRECT lprect ) … … 467 465 * ShellExecuteA [SHELL32.245] 468 466 */ 467 469 468 HINSTANCE WINAPI ShellExecuteA( HWND hWnd, LPCSTR lpOperation, 470 469 LPCSTR lpFile, LPCSTR lpParameters, 471 470 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 476 507 477 508 /************************************************************************* … … 518 549 hWndCtl = GetDlgItem(hWnd, IDC_LISTBOX); 519 550 SendMessageA( hWndCtl, WM_SETREDRAW, 0, 0 ); 520 SendMessageA( hWndCtl, WM_SETFONT, hIconTitleFont, 0 );521 551 while (*pstr) 522 552 { SendMessageA( hWndCtl, LB_ADDSTRING, (WPARAM)-1, (LPARAM)*pstr ); … … 685 715 686 716 /************************************************************************* 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 */ 722 BOOL 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 */ 733 BOOL WINAPI Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW pnid ) 734 { TRACE_(shell)("\n"); 735 return FALSE; 736 } 737 738 739 /************************************************************************* 687 740 * Shell_NotifyIcon [SHELL32.296] 688 741 * FIXME … … 692 745 BOOL WINAPI Shell_NotifyIcon( DWORD dwMessage, PNOTIFYICONDATAA pnid ) 693 746 { 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)); 706 751 } 707 752
Note:
See TracChangeset
for help on using the changeset viewer.