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

📄 phonecore.rc

📁 一个WinCE6。0下的IP phone的源代码
💻 RC
📖 第 1 页 / 共 2 页
字号:
//
// 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 "NewResource.hpp"
#include "ControlDefinitions.h"

IDB_ICON_ERROR          BITMAP  "res\\IconError.bmp"
IDB_ICON_INCOMINGCALL   BITMAP  "res\\IconIncomingCall.bmp"
IDB_CALL_GLYPHS         BITMAP  "res\\callglyphs.bmp"
IDB_HELP_ICON           BITMAP  "res\\deleteconfirm.bmp"

IDMB_DEFAULT_BUTTONS MENU
BEGIN
    MENUITEM "*",       0
    MENUITEM "*",       0
    MENUITEM "*",       0
    MENUITEM "*",       0
END

IDMB_DIALING_EMPTY_BUTTONS    MENU
BEGIN
    MENUITEM "INPUT",       IDM_INPUT
    MENUITEM "*",           0
    MENUITEM "*",           0
    MENUITEM "*",           0
END

IDMB_DIALING_BUTTONS    MENU
BEGIN
    MENUITEM "INPUT",       IDM_INPUT
    MENUITEM "Backspace",   IDM_BACKSPACE
    MENUITEM "*",           0
    MENUITEM "Dial",        IDM_DIAL
END


IDMB_TRANSFERRING_BUTTONS   MENU
BEGIN
    MENUITEM "INPUT",       IDM_INPUT
    MENUITEM "Backspace",   IDM_BACKSPACE
    MENUITEM "Cancel",      IDM_CANCEL
    MENUITEM "Transfer",    IDM_TRANSFER
END

IDMB_TRANSFERRING_EMPTY_BUTTONS MENU
BEGIN
    MENUITEM "INPUT",       IDM_INPUT
    MENUITEM "*",           0
    MENUITEM "*",           0
    MENUITEM "Cancel",      IDM_CANCEL
END

IDMB_CALLSTATUS_BUTTONS     MENU
BEGIN
    MENUITEM "Save To Speeddial",   IDM_SAVETOSPEEDDIAL
    MENUITEM "*",                   0
    MENUITEM "*",                   0
    MENUITEM "Hangup",              IDM_HANGUP
END

IDMB_INCOMING_BUTTONS   MENU
BEGIN
    MENUITEM "Send to voicemail",   IDM_DIRECTTOVOICEMAIL
    MENUITEM "*",                   0
    MENUITEM "*",                   0
    MENUITEM "Answer",              IDM_ANSWER
END

IDMB_HELP_BUTTONS    MENU
BEGIN
    MENUITEM "*",       0
    MENUITEM "*",       0
    MENUITEM "*",       0
    MENUITEM "OK",      IDM_HELP_OK
END


// Layout Metrics
IDR_METRICS_DATA RCDATA
BEGIN
    45,                                         // Call Duration Width
    8,                                          // Call Control Label Margin Width
    4,                                          // Transfer control from top
    45,                                         // Call Item Height    
    DEFINE_SIZE(19, 16),                        // Size of Call Glyph
    DEFINE_MARGIN(8, 8, 4, 4),                  // Call Text Margins
    DEFINE_ADJUSTMENT_MARGIN(14, 8, 10, 11),    // Dialing State Adjustment Margins
    DEFINE_ADJUSTMENT_MARGIN(14, 14, 15, 6),    // Transferring State Adjustment Margins
END

// Colors
IDR_COLORS_DATA RCDATA
BEGIN
    DEFINE_RGB_COLOR(0x66,0x66,0x66),   // 'Transfer To Label' color
END

// HotKeys
IDR_HOTKEYS_DATA RCDATA
BEGIN
    VK_ESCAPE,      //VOICEMAIL
    VK_F8,          //HOLD
    VK_F10,         //REDIAL
    VK_F9,          //TRANSFER
    VK_F7,          //MUTE    
    VK_F5,          //HOOKSWITCH
    VK_F6,          //SPEARKER
END


STRINGTABLE DISCARDABLE
BEGIN
    IDS_INCOMING_TITLE      L"Incoming Call"
    IDS_INCOMING_TEXT       L"Incoming Call%n%1\n%2"
    IDS_DEFAULT_HEADER      L"Press and hold Menu for help"
    IDS_DEFAULT_TITLE       L"Calls in progress"
    IDS_LABEL_DIAL          L"Dial:"
    IDS_LABEL_TRANSFER      L"Transferring %1"
    IDS_TIME_FMT_DURATION   L"HH:mm:ss"
END


//NOTIFICATION AREA STRINGS
STRINGTABLE
BEGIN
    //Notify strings
    IDS_STATUS_HELP_DEFAULT                     "Press and hold ""Menu"" for help"
    IDS_STATUS_CALL_TRYING                      "Trying ..." 
    IDS_STATUS_CALL_RINGING                     "Ringing ..."
    IDS_STATUS_CALL_CONNECTED                   "Connected"
    IDS_STATUS_CALL_HOLDING                     "Holding"
    IDS_STATUS_CALL_FORWARDING                  "Forwarding..."
    IDS_STATUS_CALL_PROGRESS                    "Progress ..."
    IDS_STATUS_CALL_CONTACTINGSERVER            "Contacting proxy server..."
END

STRINGTABLE
BEGIN
    IDS_ERROR_UNKNOWN                           "Unknown error"
    IDS_ERROR_INTERNAL                          "Internal error"
    IDS_ERROR_OUTOFMEMORY                       "Out of memory"
    IDS_ERROR_VOIPBUSY                          "Waiting for data from server"
    IDS_ERROR_NODB                              "Databases do not exist"
    IDS_ERROR_INVALIDNUMBER                     "Your call cannot be completed as dialed"
END


STRINGTABLE
BEGIN
    IDS_SCREENHELP_CALLSINPROGRESS   "Transfer button: Press once to enter the number to transfer to. Press again to transfer the call.\n\nHold button: Press once to place the selected call on hold, or to return to a held call \n\nRedial button: Press once to dial the last number you called."
    IDS_SCREENHELP_DEFAULT           "There is no additional information associated with this screen."    
    IDS_SCREENHELP_TITLE             "Help"
END

STRINGTABLE
BEGIN
    IDS_RTCERR_SIP_STREAM_PRESENT               "Parsing SIP failed"    
    IDS_RTCERR_SIP_STREAM_NOT_PRESENT           "The stream to be stopped is not present"    
    IDS_RTCERR_SIP_NO_STREAM                    "No stream is active"    
    IDS_RTCERR_SIP_PARSE_FAILED                 "Parsing SIP failed"    
    IDS_RTCERR_SIP_HEADER_NOT_PRESENT           "The SIP header is not present in the message"    
    IDS_RTCERR_SDP_NOT_PRESENT                  "SDP is not present in the SIP message"    
    IDS_RTCERR_SDP_PARSE_FAILED                 "Parsing SDP failed"    
    IDS_RTCERR_SDP_UPDATE_FAILED                "SDP does not match the previous one"    
    IDS_RTCERR_SDP_MULTICAST                    "Multicast is not supported"    
    IDS_RTCERR_SDP_CONNECTION_ADDR              "Media does not contain connection address"    
    IDS_RTCERR_SDP_NO_MEDIA                     "No media is available for the session"    
    IDS_RTCERR_SIP_TIMEOUT                      "SIP Transaction timed out"    
    IDS_RTCERR_SDP_FAILED_TO_BUILD              "Failed to build SDP blob"    
    IDS_RTCERR_SIP_INVITE_TRANSACTION_PENDING   "Currently processing another INVITE transaction"    
    IDS_RTCERR_SIP_AUTH_HEADER_SENT             "Authorization header was sent in a previous request"    
    IDS_RTCERR_SIP_AUTH_TYPE_NOT_SUPPORTED      "The Authentication type requested is not supported"    
    IDS_RTCERR_SIP_AUTH_FAILED                  "Authentication Failed"    

⌨️ 快捷键说明

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