📄 resource.h
字号:
//
// 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.
//
#pragma once
#ifndef __RESOURCE_H__
#define __RESOURCE_H__
//Titles
#define IDS_TITLE_BASE 100
#define IDS_TITLE_MISSED (IDS_TITLE_BASE + 1)
#define IDS_TITLE_INCOMING (IDS_TITLE_BASE + 2)
#define IDS_TITLE_OUTGOING (IDS_TITLE_BASE + 3)
#define IDS_TITLE_CALLLOGS (IDS_TITLE_BASE + 4)
#define IDS_TITLE_SPEEDDIAL (IDS_TITLE_BASE + 5)
#define IDS_TITLE_CONTACTS (IDS_TITLE_BASE + 6)
#define IDS_TITLE_OUTLOOKCONTACTS (IDS_TITLE_BASE + 7)
#define IDS_TITLE_GAL (IDS_TITLE_BASE + 8)
#define IDS_TITLE_DIRECTORY (IDS_TITLE_BASE + 9)
#define IDS_TITLE_MISSEDDETAILS (IDS_TITLE_BASE + 10)
#define IDS_TITLE_INCOMINGDETAILS (IDS_TITLE_BASE + 11)
#define IDS_TITLE_OUTGOINGDETAILS (IDS_TITLE_BASE + 12)
#define IDS_TITLE_HELP (IDS_TITLE_BASE + 13)
#define IDS_TITLE_CONFIRM_DELETE (IDS_TITLE_BASE + 14)
#define IDS_TITLE_CONFIRM_BLOCK (IDS_TITLE_BASE + 15)
#define IDS_TITLE_GALDETAILS (IDS_TITLE_BASE + 16)
#define IDS_TITLE_CONTACTDETAILS (IDS_TITLE_BASE + 17)
#define IDS_TITLE_BLOCKEDCALLERS (IDS_TITLE_BASE + 18)
//status strings
#define IDS_STATUS_BASE 200
#define IDS_STATUS_FREEBUSY_FREE (IDS_STATUS_BASE + 1)
#define IDS_STATUS_FREEBUSY_OOF (IDS_STATUS_BASE + 2)
#define IDS_STATUS_FREEBUSY_BUSY (IDS_STATUS_BASE + 3)
#define IDS_STATUS_FREEBUSY_TENTATIVE (IDS_STATUS_BASE + 4)
#define IDS_STATUS_FREEBUSY_UNKNOWN (IDS_STATUS_BASE + 5)
#define IDS_STATUS_HELP_SD_NAMENUM (IDS_STATUS_BASE + 6)
#define IDS_STATUS_HELP_SD_RINGTONE (IDS_STATUS_BASE + 7)
#define IDS_STATUS_HELP_SD_SD (IDS_STATUS_BASE + 8)
#define IDS_STATUS_HELP_SPEEDDIALLIST (IDS_STATUS_BASE + 9)
#define IDS_STATUS_GALSEARCH_DEFAULT (IDS_STATUS_BASE + 10)
#define IDS_STATUS_GALSEARCH_FIRSTNAME (IDS_STATUS_BASE + 11)
#define IDS_STATUS_GALSEARCH_LASTNAME (IDS_STATUS_BASE + 12)
#define IDS_STATUS_EXCHANGE_LOGGINGIN (IDS_STATUS_BASE + 13)
#define IDS_STATUS_EXCHANGE_WAITING (IDS_STATUS_BASE + 14)
#define IDS_STATUS_EXCHANGE_SENDINGREQUEST (IDS_STATUS_BASE + 15)
#define IDS_STATUS_HELP_DETAILSVIEW (IDS_STATUS_BASE + 16)
//format strings
#define IDS_FMT_BASE 300
#define IDS_FMT_FREEBUSY_UNTIL (IDS_FMT_BASE + 1)
#define IDS_FMT_FREEBUSY_FORTHERESTOFTHEDAY (IDS_FMT_BASE + 2)
#define IDS_FMT_FREEBUSY_DEFAULT (IDS_FMT_BASE + 3)
#define IDS_FMT_CALLRECORD_CALLEDFROM (IDS_FMT_BASE + 4)
#define IDS_FMT_CALLRECORD_CALLEDTO (IDS_FMT_BASE + 5)
#define IDS_FMT_CALLRECORD_START (IDS_FMT_BASE + 6)
#define IDS_FMT_CALLRECORD_DURATION (IDS_FMT_BASE + 7)
#define IDS_FMT_CONTACTS_FILTER_MATCHES (IDS_FMT_BASE + 8)
#define IDS_FMT_CONTACTS_ALL (IDS_FMT_BASE + 9)
#define IDS_FMT_CONFIRMDELETEALL_QUESTION (IDS_FMT_BASE + 10)
#define IDS_FMT_CONFIRMUNBLOCKALL_QUESTION (IDS_FMT_BASE + 11)
#define IDS_FMT_BLOCKED_CALLERS (IDS_FMT_BASE + 12)
#define IDS_FMT_SEARCH_RESULTS (IDS_FMT_BASE + 13)
//error strings
#define IDS_ERROR_BASE 400
#define IDS_ERROR_SPEEDDIAL_FULL (IDS_ERROR_BASE + 1)
#define IDS_ERROR_SPEEDDIAL_NEED_URI (IDS_ERROR_BASE + 2)
#define IDS_ERROR_SPEEDDIAL_INUSE (IDS_ERROR_BASE + 3)
#define IDS_ERROR_SPEEDDIAL_INVALID (IDS_ERROR_BASE + 4)
#define IDS_ERROR_NO_CONTACTS (IDS_ERROR_BASE + 5)
#define IDS_ERROR_EXCHANGE_INVALIDCREDS (IDS_ERROR_BASE + 6)
#define IDS_ERROR_EXCHANGE_INVALIDDATA (IDS_ERROR_BASE + 7)
#define IDS_ERROR_EXCHANGE_SERVERERROR (IDS_ERROR_BASE + 8)
#define IDS_ERROR_GALSEARCH_NONUMBER (IDS_ERROR_BASE + 9)
#define IDS_ERROR_NODATABASES (IDS_ERROR_BASE + 10)
#define IDS_ERROR_POPUP_CONTACTS_OOM (IDS_ERROR_BASE + 11)
#define IDS_ERROR_POPUP_EXCHANGE_NOCREDS (IDS_ERROR_BASE + 12)
#define IDS_ERROR_POPUP_EXCHANGE_CANTCONNECT (IDS_ERROR_BASE + 13)
//labels
#define IDS_LABEL_BASE 500
#define IDS_LABEL_WORK_PHONE (IDS_LABEL_BASE + 1)
#define IDS_LABEL_HOME_PHONE (IDS_LABEL_BASE + 2)
#define IDS_LABEL_MOBILE_PHONE (IDS_LABEL_BASE + 3)
#define IDS_LABEL_EMAIL (IDS_LABEL_BASE + 4)
#define IDS_LABEL_UNKNOWN_CONTACT (IDS_LABEL_BASE + 5)
#define IDS_LABEL_NAME (IDS_LABEL_BASE + 6)
#define IDS_LABEL_PHONENUM (IDS_LABEL_BASE + 7)
#define IDS_LABEL_DIAL (IDS_LABEL_BASE + 8)
#define IDS_LABEL_RINGTONE (IDS_LABEL_BASE + 9)
#define IDS_LABEL_DEFAULTRINGTONE (IDS_LABEL_BASE + 10)
#define IDS_LABEL_HELP (IDS_LABEL_BASE + 11)
#define IDS_LABEL_ERROR (IDS_LABEL_BASE + 12)
#define IDS_LABEL_CONFIRMDELETE_QUESTION (IDS_LABEL_BASE + 13)
#define IDS_LABEL_CONFIRMDELETE_TITLE (IDS_LABEL_BASE + 14)
#define IDS_LABEL_SPEEDDIAL (IDS_LABEL_BASE + 15)
#define IDS_LABEL_UNKNOWN_NUMBER (IDS_LABEL_BASE + 16)
#define IDS_LABEL_UNKNOWN_CALLER (IDS_LABEL_BASE + 17)
#define IDS_LABEL_OFFICENUMBER (IDS_LABEL_BASE + 18)
#define IDS_LABEL_EMAILADDRESS (IDS_LABEL_BASE + 19)
#define IDS_LABEL_WORKADDRESS (IDS_LABEL_BASE + 20)
#define IDS_LABEL_HOMEADDRESS (IDS_LABEL_BASE + 21)
#define IDS_LABEL_CONFIRMBLOCK_QUESTION (IDS_LABEL_BASE + 22)
#define IDS_LABEL_FIRSTNAME (IDS_LABEL_BASE + 23)
#define IDS_LABEL_LASTNAME (IDS_LABEL_BASE + 24)
#define IDS_LABEL_ALIAS (IDS_LABEL_BASE + 25)
#define IDS_LABEL_PREDICTIVE (IDS_LABEL_BASE + 26)
//help screens
#define IDS_SCREENHELP_BASE 600
#define IDS_SCREENHELP_CALLLOGS (IDS_SCREENHELP_BASE + 1)
#define IDS_SCREENHELP_DETAILS (IDS_SCREENHELP_BASE + 2)
#define IDS_SCREENHELP_SPEEDDIAL (IDS_SCREENHELP_BASE + 3)
#define IDS_SCREENHELP_EDITSPEEDDIAL (IDS_SCREENHELP_BASE + 4)
#define IDS_SCREENHELP_CONTACTS (IDS_SCREENHELP_BASE + 5)
#define IDS_SCREENHELP_GAL (IDS_SCREENHELP_BASE + 6)
#define IDS_SCREENHELP_DEFAULT (IDS_SCREENHELP_BASE + 7)
//bitmaps
#define IDB_BMP_BASE 1000
#define IDB_TENTATIVE 1001 //(IDB_BMP_BASE + 1)
#define IDB_CONFIRMDELETE 1002 //(IDB_BMP_BASE + 3)
#define IDB_HELP IDB_CONFIRMDELETE //same bitmap for now...
//Menu Button Ids
#define IDMB_BASE 1500
#define IDMB_CALLLOGLIST_BUTTONS 1501 //(IDMB_BASE + 1)
#define IDMB_CALLDETAILS_BUTTONS 1502 //(IDMB_BASE + 2)
#define IDMB_SPEEDDIALLIST_BUTTONS 1503 //(IDMB_BASE + 3)
#define IDMB_SPEEDDIALLIST_ITEM_BUTTONS 1504 //(IDMB_BASE + 4)
#define IDMB_YESNO 1505 //(IDMB_BASE + 5)
#define IDMB_SPEEDDIALEDIT_TEXT 1506 //(IDMB_BASE + 6)
#define IDMB_SPEEDDIALEDIT_INDEX 1507 //(IDMB_BASE + 7)
#define IDMB_SPEEDDIAL_RINGTONE 1508 //(IDMB_BASE + 8)
#define IDMB_MSGBOX_ERROR 1509 //(IDMB_BASE + 9)
#define IDMB_MSGBOX_HELP 1510 //(IDMB_BASE + 10)
#define IDMB_DONE 1511 //(IDMB_BASE + 11)
#define IDMB_BLOCKEDCALLERS 1512 //(IDMB_BASE + 12)
#define IDMB_CONTACTSITEM 1513 //(IDMB_BASE + 13)
#define IDMB_OUTLOOKCONTACTLIST 1514 //(IDMB_BASE + 14)
#define IDMB_GALCONTACTLIST 1515 //(IDMB_BASE + 15)
#define IDMB_YESNOTRYAGAIN 1516 //(IDMB_BASE + 16)
#define IDMB_UPDATEPASSWORD 1517 //(IDMB_BASE + 17)
//Button control id's
#define IDC_ID_BASE 2000
#define IDC_BLOCK (IDC_ID_BASE + 1)
#define IDC_DETAILS (IDC_ID_BASE + 2)
#define IDC_ADDSPEEDDIAL (IDC_ID_BASE + 3)
#define IDC_EDIT (IDC_ID_BASE + 4)
#define IDC_NEW (IDC_ID_BASE + 5)
#define IDC_BACKSPACE (IDC_ID_BASE + 6)
#define IDC_DIAL (IDC_ID_BASE + 7)
#define IDC_DELETE (IDC_ID_BASE + 8)
#define IDC_CONFIRMDELETE_YES (IDC_ID_BASE + 9)
#define IDC_CONFIRMDELETE_NO (IDC_ID_BASE + 10)
#define IDC_CHANGERINGTONE (IDC_ID_BASE + 11)
#define IDC_ERRORMSG_OK (IDC_ID_BASE + 12)
#define IDC_HELPMSG_OK (IDC_ID_BASE + 13)
#define IDC_UNBLOCK (IDC_ID_BASE + 14)
#define IDC_UNBLOCK_ALL (IDC_ID_BASE + 15)
#define IDC_INPUT (IDC_ID_BASE + 16)
#define IDC_FILTER_LASTNAME (IDC_ID_BASE + 17)
#define IDC_FILTER_FIRSTNAME (IDC_ID_BASE + 18)
#define IDC_FILTER_ALIAS (IDC_ID_BASE + 19)
#define IDC_FILTER_PREDICTIVE (IDC_ID_BASE + 20)
#define IDC_ERROR_TRYAGAIN (IDC_ID_BASE + 21)
#define IDC_ERROR_YES (IDC_ID_BASE + 22)
#define IDC_ERROR_NO (IDC_ID_BASE + 23)
#define IDC_DELETEALL (IDC_ID_BASE + 24)
//Application Metrics
#define IDR_PHINFO_METRICS 3000
#define IDR_PHINFO_COLORS 3001
///TODO: Move these macros to common!
#define DEFINE_SIZE(Width, Height) \
(Width), (Height)
#define DEFINE_RGB_COLOR(Red, Green, Blue) \
(Red##L + Green##00L + Blue##0000L)
#endif // !defined __RESOURCE_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -