Changeset 13060
- Timestamp:
- Jan 18, 2000, 11:27:56 PM (25 years ago)
- Location:
- tags/trunk/src/shell32
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified tags/trunk/src/shell32/makefile ¶
r12139 r13060 1 # $Id: makefile,v 1.1 7 1999-11-02 19:17:15 phallerExp $1 # $Id: makefile,v 1.18 2000-01-18 22:27:55 sandervl Exp $ 2 2 3 3 # … … 54 54 $(IMPDEF) $** $@ 55 55 56 resource.asm: shres.rc 56 resource.asm: shres.rc shell32_en.rc 57 57 $(RC) $(RCFLAGS) -o resource.asm shres.rc 58 58 -
TabularUnified tags/trunk/src/shell32/shell32_En.rc ¶
r11840 r13060 1 /* $Id: shell32_En.rc,v 1. 3 1999-10-11 20:17:11sandervl Exp $ */1 /* $Id: shell32_En.rc,v 1.4 2000-01-18 22:27:56 sandervl Exp $ */ 2 2 LANGUAGE LANG_ENGLISH, SUBLANG_DEFAULT 3 3 4 #if 1 5 SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 216, 170 6 STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU 7 CAPTION "About %s" 8 FONT 10, "System" 9 { 10 DEFPUSHBUTTON "OK", 1, 156, 147, 50, 12, WS_TABSTOP 11 LISTBOX 99, 8, 85, 137, 82, LBS_NOTIFY | WS_VSCROLL | WS_BORDER 12 ICON "", 1088, 189, 50, 14, 16 13 LTEXT "", 100, 8, 50, 137, 33 14 LTEXT "Odin was brought to you by:", 98, 8, 75, 137, 10 15 CONTROL "",2001,"Static",SS_BITMAP,8,2,148,26 16 } 17 #else 4 18 SHELL_ABOUT_MSGBOX DIALOG LOADONCALL MOVEABLE DISCARDABLE 15, 40, 210, 152 5 19 STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU … … 13 27 LTEXT "Odin was brought to you by:", 98, 8, 55, 137, 10 14 28 } 15 29 #endif -
TabularUnified tags/trunk/src/shell32/shell32_main.cpp ¶
r12976 r13060 1 /* $Id: shell32_main.cpp,v 1. 7 2000-01-09 19:23:09 phallerExp $ */1 /* $Id: shell32_main.cpp,v 1.8 2000-01-18 22:27:56 sandervl Exp $ */ 2 2 3 3 /* … … 559 559 * AboutDlgProc32 (internal) 560 560 */ 561 #define IDC_ODINLOGO 2001 562 #define IDB_ODINLOGO 5555 563 561 564 BOOL WINAPI AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam, 562 565 LPARAM lParam ) 563 { HWND hWndCtl; 566 { 567 HWND hWndCtl; 564 568 char Template[512], AppTitle[512]; 565 569 566 TRACE_(shell)("\n");567 568 570 switch(msg) 569 { case WM_INITDIALOG: 570 { ABOUT_INFO *info = (ABOUT_INFO *)lParam; 571 if (info) 572 { const char* const *pstr = SHELL_People; 573 SendDlgItemMessageA(hWnd, stc1, STM_SETICON,info->hIcon, 0); 574 GetWindowTextA( hWnd, Template, sizeof(Template) ); 575 sprintf( AppTitle, Template, info->szApp ); 576 SetWindowTextA( hWnd, AppTitle ); 577 SetWindowTextA( GetDlgItem(hWnd, IDC_STATIC_TEXT), 578 info->szOtherStuff ); 579 hWndCtl = GetDlgItem(hWnd, IDC_LISTBOX); 580 SendMessageA( hWndCtl, WM_SETREDRAW, 0, 0 ); 581 while (*pstr) 582 { SendMessageA( hWndCtl, LB_ADDSTRING, (WPARAM)-1, (LPARAM)*pstr ); 583 pstr++; 584 } 585 SendMessageA( hWndCtl, WM_SETREDRAW, 1, 0 ); 571 { 572 case WM_INITDIALOG: 573 { 574 ABOUT_INFO *info = (ABOUT_INFO *)lParam; 575 if(info) 576 { 577 const char* const *pstr = SHELL_People; 578 579 SendDlgItemMessageA(hWnd, stc1, STM_SETICON,info->hIcon, 0); 580 GetWindowTextA( hWnd, Template, sizeof(Template) ); 581 sprintf( AppTitle, Template, info->szApp ); 582 SetWindowTextA( hWnd, AppTitle ); 583 SetWindowTextA( GetDlgItem(hWnd, IDC_STATIC_TEXT), info->szOtherStuff ); 584 585 HWND hwndOdinLogo = GetDlgItem(hWnd, IDC_ODINLOGO); 586 if(hwndOdinLogo) { 587 HBITMAP hBitmap = LoadBitmapA(shell32_hInstance, MAKEINTRESOURCEA(IDB_ODINLOGO)); 588 SendMessageA(hwndOdinLogo, STM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hBitmap); 586 589 } 590 591 hWndCtl = GetDlgItem(hWnd, IDC_LISTBOX); 592 SendMessageA( hWndCtl, WM_SETREDRAW, 0, 0 ); 593 while (*pstr) 594 { 595 SendMessageA( hWndCtl, LB_ADDSTRING, (WPARAM)-1, (LPARAM)*pstr ); 596 pstr++; 597 } 598 SendMessageA( hWndCtl, WM_SETREDRAW, 1, 0 ); 587 599 } 588 600 return 1; 601 } 589 602 590 603 case WM_PAINT: 591 { RECT rect; 592 PAINTSTRUCT ps; 593 HDC hDC = BeginPaint( hWnd, &ps ); 594 595 if( __get_dropline( hWnd, &rect ) ) { 596 SelectObject( hDC, GetStockObject( BLACK_PEN ) ); 597 MoveToEx( hDC, rect.left, rect.top, NULL ); 598 LineTo( hDC, rect.right, rect.bottom ); 599 } 600 EndPaint( hWnd, &ps ); 601 } 602 break; 604 { 605 RECT rect; 606 PAINTSTRUCT ps; 607 HDC hDC = BeginPaint( hWnd, &ps ); 608 609 if( __get_dropline( hWnd, &rect ) ) { 610 SelectObject( hDC, GetStockObject( BLACK_PEN ) ); 611 MoveToEx( hDC, rect.left, rect.top, NULL ); 612 LineTo( hDC, rect.right, rect.bottom ); 613 } 614 EndPaint( hWnd, &ps ); 615 break; 616 } 603 617 604 618 #if 0 … … 682 696 case WM_COMMAND: 683 697 if (wParam == IDOK) 684 { EndDialog(hWnd, TRUE); 698 { 699 EndDialog(hWnd, TRUE); 685 700 return TRUE; 686 701 } 687 702 break; 703 688 704 case WM_CLOSE: 689 EndDialog(hWnd, TRUE);690 break;705 EndDialog(hWnd, TRUE); 706 break; 691 707 } 692 708 return 0; -
TabularUnified tags/trunk/src/shell32/shres.rc ¶
r12012 r13060 1 /* $Id: shres.rc,v 1. 4 1999-10-23 23:02:58sandervl Exp $ */1 /* $Id: shres.rc,v 1.5 2000-01-18 22:27:56 sandervl Exp $ */ 2 2 /* 3 3 * Top level resource file for Common Dialogs … … 22 22 23 23 LANGUAGE 0,0 24 25 //SvL: Odin logo bitmap 26 5555 BITMAP DISCARDABLE "Odinlogo.bmp" 24 27 25 28 MENU_001 MENU DISCARDABLE
Note:
See TracChangeset
for help on using the changeset viewer.