📄 homescreen.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 <winuser.h>
#include "ControlDefinitions.h"
#include "Resource.h"
IDB_BACKGROUND BITMAP "res\\Gradient-Flag.bmp"
IDB_LOGO_BIG BITMAP "res\\BigFlag.bmp"
IDB_MESSAGEBOX BITMAP "res\\DeleteConfirm.bmp"
// Colors
IDR_COLORS_DATA RCDATA
BEGIN
DEFINE_RGB_COLOR(0xFF,0x00,0xFF), // DefaultTransparentColor
DEFINE_RGB_COLOR(0x74,0x96,0xE2), // DefaultBackgroundColor
DEFINE_RGB_COLOR(0xFF,0xFF,0xFF), // HomeScreenTextColor
DEFINE_RGB_COLOR(0x8C,0xAD,0xEA), // HomeScreenDividerLineColor
END
// HotKeys
IDR_HOTKEYS_DATA RCDATA
BEGIN
VK_HOME, //vkHome
VK_END, //vkMenu
VK_F1, //vkButton1
VK_F2, //vkButton2
VK_F3, //vkButton3
VK_F4, //vkButton4
VK_RETURN, //vkDirectory
VK_TAB, //vkSpeedDial
VK_PRIOR, //vkVolumeUp
VK_NEXT, //vkVolumeDown
VK_F12 //vkShutdown
END
IDMB_HOME_SCREEN_LOCK MENU
BEGIN
MENUITEM "Lock", IDM_LOCK
MENUITEM "*", 0
MENUITEM "*", 0
MENUITEM "Settings", IDM_SETTINGS
END
IDMB_ENTERPIN_MENU MENU
BEGIN
MENUITEM "*" , 0
MENUITEM "Backspace", IDM_BACKSPACE
MENUITEM "*" , 0
MENUITEM "Cancel" , IDCANCEL
END
IDMB_OK MENU
BEGIN
MENUITEM "*", 0
MENUITEM "*", 0
MENUITEM "*", 0
MENUITEM "OK", IDOK
END
IDD_HOME_SCREEN DIALOG DISCARDABLE 0, 0, 240, 320
CLASS WNDCLASS_HOMEAPP
STYLE DS_USEPIXELS | WS_POPUP | WS_VISIBLE
BEGIN
#ifndef SHIP_BUILD
CONTROL "127.0.0.1", IDC_TEXT_IP_ADDRESS, WNDCLASS_TRANSPARENTTEXT,
WS_VISIBLE | VTS_LEFT | VTS_NOPREFIX, 14, 7, 106, 12
CONTROL "Windows CE", IDC_TEXT_CE_VERSION, WNDCLASS_TRANSPARENTTEXT,
WS_VISIBLE | VTS_RIGHT | VTS_NOPREFIX, 124, 7, 106, 12
#endif
CONTROL "", IDC_TEXT_ACCOUNT_NAME, WNDCLASS_TRANSPARENTTEXT,
WS_VISIBLE | VTS_LEFT | VTS_SINGLELINE | VTS_NOPREFIX | VTS_END_ELLIPSIS, 14, 92, 216, 30
CONTROL "", IDC_TEXT_SIP_ACCOUNT_URI, WNDCLASS_TRANSPARENTTEXT,
WS_VISIBLE | VTS_LEFT | VTS_SINGLELINE | VTS_NOPREFIX | VTS_END_ELLIPSIS, 14, 122, 130, 12
CONTROL "", IDC_TEXT_DATE, WNDCLASS_TRANSPARENTTEXT,
WS_VISIBLE | VTS_RIGHT | VTS_NOPREFIX, 144, 122, 86, 12
CONTROL "", IDC_TEXT_TIME, WNDCLASS_TRANSPARENTTEXT,
WS_VISIBLE | VTS_RIGHT | VTS_NOPREFIX, 144, 134, 86, 12
CONTROL "", IDC_TEXT_INFORMATIONAL2, WNDCLASS_TRANSPARENTTEXT,
WS_VISIBLE | VTS_LEFT | VTS_NOPREFIX | VTS_WORDBREAK, 14, 230, 216, 35
CONTROL "", IDC_TEXT_INFORMATIONAL1, WNDCLASS_TRANSPARENTTEXT,
WS_VISIBLE | VTS_LEFT | VTS_NOPREFIX | VTS_WORDBREAK, 14, 265, 216, 35
CONTROL "", IDC_BUTTON1, WNDCLASS_MENUBUTTON, WS_VISIBLE | WS_TABSTOP, 5 , 300, 52, 20
CONTROL "", IDC_BUTTON2, WNDCLASS_MENUBUTTON, WS_VISIBLE | WS_TABSTOP, 64 , 300, 52, 20
CONTROL "", IDC_BUTTON3, WNDCLASS_MENUBUTTON, WS_VISIBLE | WS_TABSTOP, 123 , 300, 52, 20
CONTROL "", IDC_BUTTON4, WNDCLASS_MENUBUTTON, WS_VISIBLE | WS_TABSTOP, 182 , 300, 52, 20
CONTROL "", IDC_MENUBAR, WNDCLASS_MENUBAR, 0, 0, 0, 0, 0 //offscreen menubar helper
END
IDD_ENTER_PIN DIALOG DISCARDABLE 0, 0, 240, 320
CLASS WNDCLASS_ENTERPIN
STYLE DS_USEPIXELS | WS_POPUP | WS_VISIBLE
BEGIN
CONTROL "", IDC_PINEDIT1, "Edit", WS_BORDER | WS_VISIBLE | ES_NUMBER | ES_PASSWORD, 80 , 156, 20, 20
CONTROL "", IDC_PINEDIT2, "Edit", WS_BORDER | WS_VISIBLE | ES_NUMBER | ES_PASSWORD, 103, 156, 20, 20
CONTROL "", IDC_PINEDIT3, "Edit", WS_BORDER | WS_VISIBLE | ES_NUMBER | ES_PASSWORD, 126, 156, 20, 20
CONTROL "", IDC_PINEDIT4, "Edit", WS_BORDER | WS_VISIBLE | ES_NUMBER | ES_PASSWORD, 149, 156, 20, 20
CONTROL "Enter PIN.", ID_STATIC, WNDCLASS_TRANSPARENTTEXT, WS_VISIBLE, 60, 115, 80, 12
CONTROL "PIN:" , ID_STATIC, WNDCLASS_TRANSPARENTTEXT, WS_VISIBLE, 60, 158, 20, 12
CONTROL "", IDC_BUTTON1, WNDCLASS_MENUBUTTON, WS_VISIBLE | WS_TABSTOP, 5 , 300, 52, 20
CONTROL "", IDC_BUTTON2, WNDCLASS_MENUBUTTON, WS_VISIBLE | WS_TABSTOP, 64 , 300, 52, 20
CONTROL "", IDC_BUTTON3, WNDCLASS_MENUBUTTON, WS_VISIBLE | WS_TABSTOP, 123 , 300, 52, 20
CONTROL "", IDC_BUTTON4, WNDCLASS_MENUBUTTON, WS_VISIBLE | WS_TABSTOP, 182 , 300, 52, 20
CONTROL "", IDC_MENUBAR, WNDCLASS_MENUBAR, 0, 0, 0, 0, 0 //offscreen menubar helper
END
STRINGTABLE
BEGIN
IDS_LABEL_DEFAULT_NAME "Windows CE"
IDS_DATE_FORMAT_LONG "MMMM dd',' yyyy"
IDS_STATUS_REGISTERING "Registering..."
IDS_STATUS_REGISTRATION_ERROR "Server registration failed.\nErr: %s"
IDS_STATUS_PROVISIONING_ERROR "More configuration needed.\nPlease update your phone settings"
IDS_STATUS_PROVISIONING_INVALID "More configuration needed.\nOne or more of your SIP settings is invalid"
IDS_STATUS_AUTOFORWARDING_TO "Autoforwarding enabled to %s."
IDS_STATUS_DO_NOT_DISTURB "Do not disturb"
IDS_STATUS_CALL_FORWARDED "Call from %s forwarded."
IDS_STATUS_CALL_BLOCKED "Call from %s blocked."
IDS_STATUS_CALL_MISSED "Call from %s missed."
IDS_STATUS_UPDATING "Synchronizing configuration settings..."
IDS_STATUS_UPDATE_ERROR "Could not update settings from server"
IDS_LOCK "Lock"
IDS_UNLOCK "Unlock"
IDS_SETTINGS "Settings"
IDS_CANCEL "Cancel"
IDS_MISSED_CALLS "See Missed Calls"
IDS_TITLE_ERROR "Error"
IDS_TITLE_HELP "Help"
IDS_ERROR_WRONGPIN "The old PIN value is incorrect."
IDS_HELP_DEFAULT "There is no additional information associated with this screen."
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -