⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 phinfo.rc

📁 一个WinCE6。0下的IP phone的源代码
💻 RC
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
//
#include <windows.h>
#include "resource.h"

//Bitmaps
IDB_TENTATIVE            BITMAP    "Tentative.bmp"
IDB_CONFIRMDELETE        BITMAP    "DeleteConfirm.bmp"

//Metrics
IDR_PHINFO_METRICS  RCDATA
BEGIN
    DEFINE_SIZE(10, 10), //SpeedDialDisplayItem: margin
    45,                  //SpeedDialDisplayItem: item height
    8,                   //SpeedDialDisplayItem: "index" left offset
    32,                  //SpeedDialDisplayItem: "index" total width
    59,                  //SpeedDialList LabeledEditDisplayItem: width for each label
    DEFINE_SIZE(5, 5),   //FreeBusyDisplayItem: Text margin
    7,                   //FreeBusyDisplayItem: "Tentative" bitmap width
    77,                  //FreeBusyDisplayItem: Item Height
    9,                   //FreeBusyDisplayItem: Graphics total height
    52,                  //FreeBusyDisplayItem: Graphics Y offset from top
    38,                  //FreeBusyDisplayItem: StatusText Y offset from top
    62,                  //FreeBusyDisplayItem: Clock Y Offset from top
    39,                  //FreeBusyCallRecordDisplayItem: Extra height
    12,                  //FreeBusyCallRecordDisplayItem: CallRecord Y Offset from previous
    DEFINE_SIZE(8, 10),  //CallRecordDisplayItem: margin
    45,                  //CallRecordDisplayItem: height
    DEFINE_SIZE(5, 7),   //LabeledInfoDisplayItem: margin
    123,                 //LabeledInfoDisplayItem: Max data width
END

IDR_PHINFO_COLORS RCDATA
BEGIN
    DEFINE_RGB_COLOR(0xFF, 0xFF, 0xFF), //FreebusyStatus: Free
    DEFINE_RGB_COLOR(0x00, 0x00, 0xFF), //FreebusyStatus: Busy
    DEFINE_RGB_COLOR(0x80, 0x00, 0x80), //FreebusyStatus: OOF
    DEFINE_RGB_COLOR(0xC0, 0xC0, 0xC0), //FreebusyStatus: Unknown
    DEFINE_RGB_COLOR(0xFF, 0xFF, 0xFF), //FreebusyItem: Background
    DEFINE_RGB_COLOR(0xFF, 0x00, 0x00), //FreebusyItem: "Now" line
    DEFINE_RGB_COLOR(0x00, 0x00, 0x00), //FreebusyItem: Text color
    DEFINE_RGB_COLOR(0x85, 0x95, 0xCE), //FreebusyItem: Outline of FB graphics
END

STRINGTABLE DISCARDABLE
BEGIN
    //Titles
    IDS_TITLE_MISSED                "Missed Calls"
    IDS_TITLE_INCOMING              "Received Calls"
    IDS_TITLE_OUTGOING              "Outgoing Calls"
    IDS_TITLE_CALLLOGS              "Call Logs"
    IDS_TITLE_SPEEDDIAL             "Speed Dial"
    IDS_TITLE_CONTACTS              "Contacts"
    IDS_TITLE_OUTLOOKCONTACTS       "Outlook Contacts"
    IDS_TITLE_GAL                   "Global Address List"
    IDS_TITLE_DIRECTORY             "Directory"
    IDS_TITLE_MISSEDDETAILS         "Missed Call Details"
    IDS_TITLE_INCOMINGDETAILS       "Received Call Details"
    IDS_TITLE_OUTGOINGDETAILS       "Outgoing Call Details"
    IDS_TITLE_HELP                  "Help"
    IDS_TITLE_CONFIRM_DELETE        "Confirm Delete"
    IDS_TITLE_CONFIRM_BLOCK         "Confirm Block"
    IDS_TITLE_GALDETAILS            "GAL Details"
    IDS_TITLE_BLOCKEDCALLERS        "Blocked Callers"
    IDS_TITLE_CONTACTDETAILS        "Contact Details"
    
    //Status Strings
    IDS_STATUS_FREEBUSY_FREE        "Free" 
    IDS_STATUS_FREEBUSY_OOF         "Out of office"  
    IDS_STATUS_FREEBUSY_BUSY        "Busy"
    IDS_STATUS_FREEBUSY_TENTATIVE   "Tentatively busy"
    IDS_STATUS_FREEBUSY_UNKNOWN     "Unknown"
    IDS_STATUS_HELP_SD_NAMENUM      "Edit information for this caller"
    IDS_STATUS_HELP_SD_RINGTONE     "Custom ring tone for this caller"
    IDS_STATUS_HELP_SD_SD           "2-digit speed dial index"
    IDS_STATUS_HELP_SPEEDDIALLIST   "Select 2-digit entry from list"
    IDS_STATUS_GALSEARCH_DEFAULT    "Type the alias you want to search for"
    IDS_STATUS_GALSEARCH_FIRSTNAME  "Type the first name you want to search for"
    IDS_STATUS_GALSEARCH_LASTNAME   "Type the last name you want to search for"
    IDS_STATUS_EXCHANGE_LOGGINGIN   "Logging into server..."
    IDS_STATUS_EXCHANGE_WAITING     "Waiting for server..."
    IDS_STATUS_EXCHANGE_SENDINGREQUEST  "Requesting data..."
    IDS_STATUS_HELP_DETAILSVIEW     "Details view"

    //format strings
    IDS_FMT_FREEBUSY_UNTIL          "%1 until %2!d!:%3!02d!"
    IDS_FMT_FREEBUSY_FORTHERESTOFTHEDAY "Currently %1"
    IDS_FMT_FREEBUSY_DEFAULT        "Free/Busy Status"
    IDS_FMT_CALLRECORD_CALLEDFROM   "Called from: %s"
    IDS_FMT_CALLRECORD_CALLEDTO     "Called to: %s"
    IDS_FMT_CALLRECORD_START        "Date of call: %s"
    IDS_FMT_CALLRECORD_DURATION     "Time of call: %s"
    IDS_FMT_CONFIRMDELETEALL_QUESTION  "Are you sure you want to delete these %d items?"
    IDS_FMT_CONFIRMUNBLOCKALL_QUESTION "Are you sure you want to unblock these %d callers?"
    IDS_FMT_CONTACTS_FILTER_MATCHES  "%d search matches"
    IDS_FMT_CONTACTS_ALL             "%d contacts"
    IDS_FMT_BLOCKED_CALLERS          "%d blocked callers"
    IDS_FMT_SEARCH_RESULTS           "%d search results"
    
    //labels
    IDS_LABEL_WORK_PHONE            "Work Phone:"
    IDS_LABEL_HOME_PHONE            "Home Phone:"
    IDS_LABEL_MOBILE_PHONE          "Mobile Phone:"
    IDS_LABEL_EMAIL                 "Email:"
    IDS_LABEL_UNKNOWN_CONTACT       "Unknown Contact"
    IDS_LABEL_DIAL                  "Dial:"
    IDS_LABEL_NAME                  "Name:"
    IDS_LABEL_PHONENUM              "Phone Number:"
    IDS_LABEL_SPEEDDIAL             "Speed Dial Number:"
    IDS_LABEL_RINGTONE              "Ring tone:"
    IDS_LABEL_DEFAULTRINGTONE       "[Default]"
    IDS_LABEL_HELP                  "Help"
    IDS_LABEL_ERROR                 "Error"
    IDS_LABEL_CONFIRMDELETE_QUESTION "Are you sure you want to delete %s?"
    IDS_LABEL_CONFIRMDELETE_TITLE   "Confirm Delete"
    IDS_LABEL_UNKNOWN_NUMBER        "Unknown Number"
    IDS_LABEL_UNKNOWN_CALLER        "Unknown Caller"
    IDS_LABEL_OFFICENUMBER          "Office:"
    IDS_LABEL_EMAILADDRESS          "Email Address:"
    IDS_LABEL_WORKADDRESS           "Work Address:"
    IDS_LABEL_HOMEADDRESS           "Home Address:"
    IDS_LABEL_CONFIRMBLOCK_QUESTION "Are you sure you want to block this caller?"   
    IDS_LABEL_FIRSTNAME             "First Name:"
    IDS_LABEL_LASTNAME              "Last Name:"
    IDS_LABEL_ALIAS                 "Alias:"
    IDS_LABEL_PREDICTIVE            "Predictive:"
    
    //screen help
    IDS_SCREENHELP_CALLLOGS         "Press 'Block' to block a caller.\n\nPress 'Details' to get details about a selected caller.\n\nPress 'Delete' to delete a single call\nPress and hold the 'Delete' button for 3 seconds to clear the whole list."
    IDS_SCREENHELP_DETAILS          "Select the number you want to dial and press 'Dial' to call that number.\n\nPress 'OK' to return to the previous screen.\n\nPress the 'Add to Speed Dial' button to add the selected number to your speed dial list."
    IDS_SCREENHELP_SPEEDDIAL        "Press the 'new' button to create a new speed dial entry.\n\nType a speed dial entry number to automatically dial that user."
    IDS_SCREENHELP_EDITSPEEDDIAL    "Customize speed dial settings for this user.\n\nYou must enter a speed dial entry number between 1 and 99. You can later use this number to quickly dial this user.\n\nYou can also select a custom ring tone for this user, or enter a special name to display." 
    IDS_SCREENHELP_DEFAULT          "There is no additional information associated with this screen."
    IDS_SCREENHELP_GAL              "You can search the Global Address list by a user's first name, last name or alias. You can change the mode by pressing the mode menu on the bottom of the screen.\n\nFor example, entering 'ab' while in 'Alias' search mode will return up to 100 entries in the Global Address List whose alias begins with 'ab'."
    IDS_SCREENHELP_CONTACTS         "You can choose the way you want to search for a contact.\n\nSearch by First Name, Last Name, or by Predictive Mode.\nPredictive Mode guesses the name you want to search for using just one or two hints. For example, '2' matches A, B and C, and '3' matches D, E or F\nso  '32' could match 'Dave', 'Dana', and 'Ebruhim'."

    //error strings
    IDS_ERROR_SPEEDDIAL_FULL        "There are no available speed dial entries. Please delete one and try again." 
    IDS_ERROR_SPEEDDIAL_NEED_URI    "Please enter a phone number."
    IDS_ERROR_SPEEDDIAL_INUSE       "That speed dial index is already in use."
    IDS_ERROR_SPEEDDIAL_INVALID     "Invalid speed dial entry."
    IDS_ERROR_EXCHANGE_INVALIDCREDS "User name or password is not valid"
    IDS_ERROR_EXCHANGE_INVALIDDATA  "Invalid data received from the server"
    IDS_ERROR_EXCHANGE_SERVERERROR  "There was a problem contacting the server"
    IDS_ERROR_GALSEARCH_NONUMBER    "No phone number to call"
    IDS_ERROR_NO_CONTACTS           "Error: There are no contacts"
    IDS_ERROR_NODATABASES           "Databases do not exist"
    IDS_ERROR_POPUP_CONTACTS_OOM    "There is not enough memory to store your contacts."
    IDS_ERROR_POPUP_EXCHANGE_NOCREDS     "The user name or password is not valid.\nWould you like to update your user name and password now?"
    IDS_ERROR_POPUP_EXCHANGE_CANTCONNECT "Cannot connect to the server.\nMake sure the proxy and server addresses are correct. Would you like to see them now?"

END

IDMB_CALLDETAILS_BUTTONS MENU
BEGIN
    MENUITEM "Add to Speed Dial", IDC_ADDSPEEDDIAL
    MENUITEM "*",                 0
    MENUITEM "Dial",              IDC_DIAL
    MENUITEM "OK",                IDOK
END

IDMB_SPEEDDIALLIST_BUTTONS MENU
BEGIN
    MENUITEM "New",       IDC_NEW
    MENUITEM "Backspace", IDC_BACKSPACE
    MENUITEM "Cancel",    IDCANCEL
    MENUITEM "Dial",      IDC_DIAL
END

IDMB_SPEEDDIALLIST_ITEM_BUTTONS MENU
BEGIN
    MENUITEM "New",    IDC_NEW
    MENUITEM "Delete", IDC_DELETE
    MENUITEM "Edit",   IDC_EDIT
    MENUITEM "Dial",   IDC_DIAL
END

IDMB_YESNO   MENU
BEGIN
    MENUITEM "Yes",  IDC_CONFIRMDELETE_YES
    MENUITEM "*"  ,  0
    MENUITEM "*"  ,  0
    MENUITEM "No" ,  IDC_CONFIRMDELETE_NO
END

IDMB_UPDATEPASSWORD MENU
BEGIN
    MENUITEM "Yes",  IDC_ERROR_YES
    MENUITEM "*"  ,  0
    MENUITEM "*"  ,  0
    MENUITEM "No" ,  IDC_ERROR_NO
END

IDMB_YESNOTRYAGAIN MENU
BEGIN
    MENUITEM "Try Again", IDC_ERROR_TRYAGAIN
    MENUITEM "*"        , 0
    MENUITEM "Yes"      , IDC_ERROR_YES
    MENUITEM "No"       , IDC_ERROR_NO
END

IDMB_CALLLOGLIST_BUTTONS MENU
BEGIN
    POPUP "More..."
    BEGIN
        MENUITEM "Delete"  IDC_DELETE    
        MENUITEM "Block",  IDC_BLOCK
    END    
    MENUITEM "Dial",       IDC_DIAL
    MENUITEM "OK",         IDOK
    MENUITEM "Details",    IDC_DETAILS
END

IDMB_SPEEDDIALEDIT_TEXT MENU
BEGIN
    MENUITEM "INPUT"    , IDC_INPUT
    MENUITEM "Backspace", IDC_BACKSPACE
    MENUITEM "Cancel"   , IDCANCEL
    MENUITEM "Done"     , IDOK
END

IDMB_SPEEDDIALEDIT_INDEX MENU
BEGIN
    MENUITEM "*"        , 0
    MENUITEM "Backspace", IDC_BACKSPACE
    MENUITEM "Cancel"   , IDCANCEL
    MENUITEM "Done"     , IDOK
END

IDMB_SPEEDDIAL_RINGTONE MENU
BEGIN
    MENUITEM "Change"   , IDC_CHANGERINGTONE
    MENUITEM "*"        , 0
    MENUITEM "Cancel"   , IDCANCEL
    MENUITEM "Done"     , IDOK
END

IDMB_MSGBOX_ERROR MENU
BEGIN
    MENUITEM "*"  ,  0
    MENUITEM "*"  ,  0
    MENUITEM "*"  ,  0
    MENUITEM "Ok" ,  IDC_ERRORMSG_OK
END

IDMB_MSGBOX_HELP MENU
BEGIN
    MENUITEM "*"  ,  0
    MENUITEM "*"  ,  0
    MENUITEM "*"  ,  0
    MENUITEM "Ok" ,  IDC_HELPMSG_OK
END

IDMB_DONE MENU
BEGIN
    MENUITEM "*"  ,  0
    MENUITEM "*"  ,  0
    MENUITEM "*"  ,  0
    MENUITEM "Done" ,  IDCANCEL
END

IDMB_BLOCKEDCALLERS MENU
BEGIN
    MENUITEM "Unblock All",  IDC_UNBLOCK_ALL
    MENUITEM "*",            0    
    MENUITEM "Unblock",      IDC_UNBLOCK
    MENUITEM "Done",         IDCANCEL
END

IDMB_OUTLOOKCONTACTLIST MENU
BEGIN
    MENUITEM "INPUT"    , IDC_INPUT
    MENUITEM "Backspace", IDC_BACKSPACE    
    POPUP    "Filter"           
    BEGIN
        MENUITEM "Last Name"    IDC_FILTER_LASTNAME
        MENUITEM "First Name",  IDC_FILTER_FIRSTNAME
        MENUITEM "Predictive",  IDC_FILTER_PREDICTIVE
    END    
    MENUITEM "Done",            IDOK
END

IDMB_GALCONTACTLIST MENU
BEGIN
    MENUITEM "INPUT"    , IDC_INPUT
    MENUITEM "Backspace", IDC_BACKSPACE    
    POPUP    "Filter" 
    BEGIN
        MENUITEM "Last Name"    IDC_FILTER_LASTNAME
        MENUITEM "First Name",  IDC_FILTER_FIRSTNAME
        MENUITEM "Alias",       IDC_FILTER_ALIAS        
    END    
    MENUITEM "Done",            IDOK
END

IDMB_CONTACTSITEM MENU
BEGIN
    MENUITEM "*",          0    
    MENUITEM "Done",       IDOK
    MENUITEM "Details",    IDC_DETAILS
    MENUITEM "Dial",       IDC_DIAL
END

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -