CLIENT.RC
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:12k
源码类别:
Windows编程
开发平台:
Visual C++
- /*
- - C L I E N T . R C
- -
- * Purpose:
- * Resource file for the sample mail client.
- *
- * Copyright 1993-1995 Microsoft Corporation. All Rights Reserved.
- */
- #include <windows.h>
- #ifdef WIN32
- #include <winver.h>
- #else
- #include <ver.h>
- #endif
- #define WINDOWS_INCLUDED
- #include "client.h"
- #include <pdkver.h>
- // Fonts to use in dialogs
- #ifdef WIN32
- #define SHELL_FONT "MS Shell Dlg"
- #define SHELL_FONT_SIZE 8
- #else
- #define SHELL_FONT "MS Sans Serif"
- #define SHELL_FONT_SIZE 8
- #endif
- NoMail ICON client.ico
- NewMail ICON client2.ico
- IDB_ENVELOPE BITMAP envelope.bmp
- MailMenu MENU
- BEGIN
- POPUP "&File"
- BEGIN
- MENUITEM "&Logon...", IDM_LOGON
- MENUITEM "L&ogoff", IDM_LOGOFF, GRAYED
- MENUITEM SEPARATOR
- MENUITEM "E&xit", IDM_EXIT
- END
- POPUP "&Mail"
- BEGIN
- MENUITEM "Compose &Note...", IDM_COMPOSE, GRAYED
- MENUITEM SEPARATOR
- MENUITEM "&Read Mail...", IDM_READ, GRAYED
- MENUITEM "&Send Mail...", IDM_SEND, GRAYED
- MENUITEM SEPARATOR
- MENUITEM "&Address Book...", IDM_ADDRBOOK, GRAYED
- MENUITEM SEPARATOR
- MENUITEM "&Details...", IDM_DETAILS, GRAYED
- END
- POPUP "&Help"
- BEGIN
- MENUITEM "&About sample Client...", IDM_ABOUT
- END
- END
- ComposeNote DIALOG 5, 5, 341, 250
- STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
- CAPTION "Compose Note"
- FONT SHELL_FONT_SIZE, SHELL_FONT
- BEGIN
- LTEXT "&To:", IDT_TO, 8, 32, 36, 8
- EDITTEXT IDC_TO, 46, 30, 240, 24, ES_MULTILINE |
- ES_AUTOVSCROLL | WS_VSCROLL
- LTEXT "&Cc:", IDT_CC, 8, 59, 36, 8
- EDITTEXT IDC_CC, 46, 57, 240, 24, ES_MULTILINE |
- ES_AUTOVSCROLL | WS_VSCROLL
- LTEXT "Sub&ject:", IDT_SUBJECT, 8, 86, 36, 8
- EDITTEXT IDC_SUBJECT, 46, 84, 240, 12, ES_AUTOHSCROLL
- EDITTEXT IDC_NOTE, 0, 103, 338, 147, ES_MULTILINE | ES_AUTOVSCROLL |
- WS_VSCROLL | ES_LEFT | ES_WANTRETURN
- PUSHBUTTON "&Send", IDC_SEND, 26, 4, 50, 14
- PUSHBUTTON "Chec&k Names", IDC_RESOLVE, 82, 4, 50, 14
- PUSHBUTTON "&Attach", IDC_ATTACH, 138, 4, 50, 14
- PUSHBUTTON "A&ddress", IDC_ADDRBOOK, 250, 4, 50, 14
- PUSHBUTTON "Opt&ions", IDC_OPTIONS, 194, 4, 50, 14
- CONTROL "", IDC_LINE1, "Static", SS_BLACKFRAME, 0, 22, 328, 1
- CONTROL "", IDC_LINE1, "Static", SS_BLACKFRAME, 0, 102, 328, 1
- LISTBOX IDC_CATTACHMENT,290,56,48,40,WS_VSCROLL | WS_TABSTOP
- LTEXT "Attachments:",IDT_CATTACHMENT,290,46,48,8
- END
- InBox DIALOG 5, 5, 284, 175
- STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
- CAPTION "InBox"
- FONT SHELL_FONT_SIZE, SHELL_FONT
- BEGIN
- LTEXT "&Messages:", IDT_MSG, 6, 10, 38, 8
- LISTBOX IDC_MSG, 6, 21, 226, 147, WS_VSCROLL |
- WS_TABSTOP | LBS_OWNERDRAWFIXED | LBS_NOTIFY
- PUSHBUTTON "&New Msgs", IDC_NEW, 237, 92, 40, 14
- PUSHBUTTON "&Read", IDC_READ, 237, 112, 40, 14
- PUSHBUTTON "&Delete", IDC_DELETE, 237, 132, 40, 14
- PUSHBUTTON "&Close", IDC_CLOSE, 237, 152, 40, 14
- END
- ReadNote DIALOG 5, 5, 304, 250
- STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
- CAPTION "Read Note"
- FONT SHELL_FONT_SIZE, SHELL_FONT
- BEGIN
- PUSHBUTTON "Save &Changes", IDC_SAVECHANGES, 4, 4, 54, 14
- PUSHBUTTON "Save &Attach", IDC_SAVEATTACH, 64, 4, 54, 14
- PUSHBUTTON "&Reply", IDC_REPLY, 124, 4, 54, 14
- PUSHBUTTON "Reply A&ll", IDC_REPLYALL, 184, 4, 54, 14
- PUSHBUTTON "&Forward", IDC_FORWARD, 244, 4, 54, 14
- LTEXT "From:", IDT_RFROM, 7, 26, 30, 8
- LTEXT "Date:", IDT_RDATE, 7, 40, 30, 8
- LTEXT "To:", IDT_RTO, 7, 54, 30, 8
- LTEXT "Cc:", IDT_RCC, 7, 68, 30, 8
- LTEXT "Subject:", IDT_RSUBJECT, 7, 82, 30, 8
- EDITTEXT IDC_RFROM, 40, 26, 200, 12, ES_AUTOHSCROLL | ES_READONLY |
- NOT WS_BORDER
- EDITTEXT IDC_RDATE, 40, 40, 200, 12, ES_AUTOHSCROLL | ES_READONLY |
- NOT WS_BORDER
- EDITTEXT IDC_RTO, 40, 54, 200, 12, ES_AUTOHSCROLL | ES_READONLY |
- NOT WS_BORDER
- EDITTEXT IDC_RCC, 40, 68, 200, 12, ES_AUTOHSCROLL | ES_READONLY |
- NOT WS_BORDER
- EDITTEXT IDC_RSUBJECT, 40, 82, 200, 12, ES_AUTOHSCROLL | ES_READONLY |
- NOT WS_BORDER
- EDITTEXT IDC_READNOTE, 0, 95, 304, 155, ES_MULTILINE | ES_AUTOVSCROLL |
- WS_VSCROLL | ES_LEFT | ES_WANTRETURN
- CONTROL "", IDC_LINE1, "Static", SS_BLACKFRAME, 0, 94, 304, 1
- CONTROL "", IDC_LINE2, "Static", SS_BLACKFRAME, 2, 22, 299, 70
- LISTBOX IDC_ATTACHMENT, 243, 47, 52, 40, WS_VSCROLL |
- WS_TABSTOP | LBS_NOTIFY
- LTEXT "Attachments:", IDT_ATTACHMENT, 243, 37, 45, 8
- END
- Options DIALOG 10, 10, 154, 50
- STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
- CAPTION "Options"
- FONT SHELL_FONT_SIZE, SHELL_FONT
- BEGIN
- CHECKBOX "&Return receipt", IDC_RETURN, 8, 10, 62, 10, BS_AUTOCHECKBOX
- DEFPUSHBUTTON "OK", IDOK, 106, 9, 40, 14
- PUSHBUTTON "Cancel", IDCANCEL, 106, 26, 40, 14
- END
- Details DIALOG 10, 10, 188, 82
- STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
- CAPTION "Details"
- FONT SHELL_FONT_SIZE, SHELL_FONT
- BEGIN
- DEFPUSHBUTTON "&Close", IDC_CLOSE, 74, 62, 40, 14
- LTEXT "Name:", IDT_NAME, 8, 9, 54, 8
- LTEXT "e-mail Type:", IDT_TYPE, 8, 23, 54, 8
- LTEXT "e-mail Address:", IDT_ADDR, 8, 37, 54, 8
- CONTROL "", IDC_LINE1, "Static", SS_BLACKFRAME, 0, 55, 188, 1
- EDITTEXT IDC_NAME, 64, 9, 118, 12, ES_AUTOHSCROLL | ES_READONLY | NOT
- WS_BORDER
- EDITTEXT IDC_TYPE, 64, 23, 118, 12, ES_AUTOHSCROLL | ES_READONLY | NOT
- WS_BORDER
- EDITTEXT IDC_ADDR, 64, 37, 118, 12, ES_AUTOHSCROLL | ES_READONLY | NOT
- WS_BORDER
- END
- AboutBox DIALOG 10, 10, 156, 88
- STYLE DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
- CAPTION "About Sample Client"
- FONT SHELL_FONT_SIZE, SHELL_FONT
- BEGIN
- CTEXT "MAPI 1.0", -1, 56, 5, 86, 8
- CTEXT "Sample Client", -1, 56, 14, 86, 8
- ICON "NoMail", ICON_NOMAIL, 12, 10, 32, 32
- DEFPUSHBUTTON "OK", IDOK, 62, 68, 32, 14, WS_GROUP
- CTEXT "", IDC_VERSION, 15, 40, 133, 8
- CTEXT "Copyright 251 Microsoft Corp. 1993-1995", 401, 15, 50, 133, 8
- END
- STRINGTABLE
- {
- SUCCESS_SUCCESS, "SUCCESS_SUCCESS"
- MAPI_E_USER_ABORT, "MAPI_E_USER_ABORT"
- MAPI_E_FAILURE, "MAPI_E_FAILURE"
- MAPI_E_LOGON_FAILURE, "MAPI_E_LOGON_FAILURE"
- MAPI_E_DISK_FULL, "MAPI_E_DISK_FULL"
- MAPI_E_INSUFFICIENT_MEMORY, "MAPI_E_INSUFFICIENT_MEMORY"
- MAPI_E_ACCESS_DENIED, "MAPI_E_ACCESS_DENIED"
- MAPI_E_TOO_MANY_SESSIONS, "MAPI_E_TOO_MANY_SESSIONS"
- MAPI_E_TOO_MANY_FILES, "MAPI_E_TOO_MANY_FILES"
- MAPI_E_TOO_MANY_RECIPIENTS, "MAPI_E_TOO_MANY_RECIPIENTS"
- MAPI_E_ATTACHMENT_NOT_FOUND, "MAPI_E_ATTACHMENT_NOT_FOUND"
- MAPI_E_ATTACHMENT_OPEN_FAILURE, "MAPI_E_ATTACHMENT_OPEN_FAILURE"
- MAPI_E_ATTACHMENT_WRITE_FAILURE, "MAPI_E_ATTACHMENT_WRITE_FAILURE"
- MAPI_E_UNKNOWN_RECIPIENT, "MAPI_E_UNKNOWN_RECIPIENT"
- MAPI_E_BAD_RECIPTYPE, "MAPI_E_BAD_RECIPTYPE"
- MAPI_E_NO_MESSAGES, "MAPI_E_NO_MESSAGES"
- MAPI_E_INVALID_MESSAGE, "MAPI_E_INVALID_MESSAGE"
- MAPI_E_TEXT_TOO_LARGE, "MAPI_E_TEXT_TOO_LARGE"
- MAPI_E_INVALID_SESSION, "MAPI_E_INVALID_SESSION"
- MAPI_E_TYPE_NOT_SUPPORTED, "MAPI_E_TYPE_NOT_SUPPORTED"
- MAPI_E_AMBIGUOUS_RECIPIENT, "MAPI_E_AMBIGUOUS_RECIPIENT"
- MAPI_E_MESSAGE_IN_USE, "MAPI_E_MESSAGE_IN_USE"
- MAPI_E_NETWORK_FAILURE, "MAPI_E_NETWORK_FAILURE"
- MAPI_E_INVALID_EDITFIELDS, "MAPI_E_INVALID_EDITFIELDS"
- MAPI_E_INVALID_RECIPS, "MAPI_E_INVALID_RECIPS"
- MAPI_E_NOT_SUPPORTED, "MAPI_E_NOT_SUPPORTED"
- IDS_LOGONFAIL, "MAPI failed to establish a valid session."
- IDS_ADDRBOOKFAIL, "MAPI unable to provide Address Book UI."
- IDS_RESOLVEFAIL, "Unable to resolve friendly names."
- IDS_UNRESOLVEDNAMES, "One or more names could not be resolved in the address book."
- IDS_SENDERROR, "An error occurred trying to send the message."
- IDS_DETAILS_TOO_MANY,"You may only request Details on one user at a time."
- IDS_DETAILSFAIL, "Unable to provide datils on selected user."
- IDS_NORECIPS, "You must enter at least one recipient."
- IDS_SAVEATTACHERROR, "An error occurred save the file attachment."
- IDS_READFAIL, "An error occurred reading the message."
- IDS_DIALOGACTIVE, "MAPI Sample Mail Client cannot exit. A dialog isn active. Close the dialog and try again."
- IDS_FILTER, "All Files (*.*)|*.*|Text Files (*.txt)|*.txt|MS Word Docs (*.doc)|*.doc|MS Excel Files (*.xl*)|*.xl*|Lotus 1-2-3 Files (*.wk*)|*.wk*|MS PowerPoint (*.ppt)|*.ppt|Word Perfect Files (*.*)|*.*|"
- }
- #ifdef DEBUG
- # define VER_FILEFLAGS VS_FF_DEBUG | VS_FF_PRERELEASE
- #else
- # define VER_FILEFLAGS VS_FF_PRERELEASE
- #endif
- #if (rmm < 10)
- #define rmmpad "0"
- #else
- #define rmmpad
- #endif
- #if defined(DEBUG) || defined(TEST)
- #define SzVer(a,b,c) #a ".00." rmmpad #b "." #c
- #else
- #define SzVer(a,b,c) #a ".0"
- #endif
- #define VERSTR(a,b,c) SzVer(a,b,c)
- #define VER_FILEVERSION_STR VERSTR(rmj, rmm, rup) "