📄 phonedialogcdma.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 OR INDEMNITIES.
//
///////////////////////////////////////////////////////////////////////////////
//
// This is "Sample Code" and is distributable subject to the terms of the end
// user license agreement.
//
///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
//
// Dialogs for use in the Pocket PC phone application
//
// Default Phone Layouts for CDMA
#include <windows.h>
#include "..\PhoneResources.h"
#include "wpcpriv.h"
#include "PHCanvas.h"
/////////////////////////////////////////////////////////////////////////////
//
// Dialogs
//
IDD_CDIALER_PORT_CDMA DIALOG DISCARDABLE 0, 0, 240, 320
STYLE DS_USEPIXELS
BEGIN
// offscreen, invisible. layout helper control. Regulates the IDC_INVALIDPHONEAREA control visibility
CONTROL "", IDC_INVALIDPHONELAYOUTHELPER, "MS_PHONE_LAYOUTHELPER", NOT WS_VISIBLE, -1, 0, 0, 0
// Invalid Phone (No Sim, Invalid Sim, Phone off)
CONTROL "", IDC_INVALIDPHONEAREA, "MS_PHONE_INVALIDPHONE", 0, 6, 0, 228, 21
// branding
CONTROL "", IDC_BRANDING, "MS_PHONE_BRANDING", 0, 6, 0, 110, 21
// status icons
CONTROL "", IDC_STATUSICONS, "MS_PHONE_STATUSICONS", 0, 140, 4, 96, 17
// call state
CONTROL "", IDC_CALLSTATE, "MS_PHONE_CALLSTATE", NOT WS_VISIBLE, 6, 25, 123, 18
// elapsed time
CONTROL "", IDC_ELAPSEDTIME, "MS_PHONE_ELAPSEDTIME", NOT WS_VISIBLE, 133, 25, 60, 18
// status area
CONTROL "", IDC_STATUSAREA, "MS_PHONE_CALLERIDINFO", NOT WS_VISIBLE, 6, 49, 187, 28
// offscreen, invisible. layout helper control.
CONTROL "", IDC_LAYOUTHELPER, "MS_PHONE_LAYOUTHELPER", NOT WS_VISIBLE, -1, 0, 0, 0
// contact picture
CONTROL "", IDC_CONTACTPICTURE, "MS_PHONE_CONTACTPICTURE", NOT WS_VISIBLE, 197, 25, 39, 52
// offscreen, invisible. layout helper control.
CONTROL "", IDC_SMARTDIALLAYOUTHELPER, "MS_PHONE_LAYOUTHELPER", NOT WS_VISIBLE, -1, 0, 0, 0
// accumulator
CONTROL "", IDC_ACCUMULATOR, "MS_PHONE_ACCUMULATOR", 0, 0, 21, 240, 27
// smartdial
CONTROL "", IDC_SMARTDIAL, "MS_PHONE_SMARTDIAL", WS_TABSTOP, 0, 48, 240, 74
// key pad
CONTROL "", IDC_DIALBUTTON_ONE, "MS_PHONE_BUTTON", 0, 6, 124, 43, 28
CONTROL "", IDC_DIALBUTTON_TWO, "MS_PHONE_BUTTON", 0, 59, 124, 43, 28
CONTROL "", IDC_DIALBUTTON_THREE, "MS_PHONE_BUTTON", 0, 112, 124, 43, 28
CONTROL "", IDC_DIALBUTTON_FOUR, "MS_PHONE_BUTTON", 0, 6, 161, 43, 28
CONTROL "", IDC_DIALBUTTON_FIVE, "MS_PHONE_BUTTON", 0, 59, 161, 43, 28
CONTROL "", IDC_DIALBUTTON_SIX, "MS_PHONE_BUTTON", 0, 112, 161, 43, 28
CONTROL "", IDC_DIALBUTTON_SEVEN, "MS_PHONE_BUTTON", 0, 6, 198, 43, 28
CONTROL "", IDC_DIALBUTTON_EIGHT, "MS_PHONE_BUTTON", 0, 59, 198, 43, 28
CONTROL "", IDC_DIALBUTTON_NINE, "MS_PHONE_BUTTON", 0, 112, 198, 43, 28
CONTROL "", IDC_DIALBUTTON_STAR, "MS_PHONE_BUTTON", 0, 6, 235, 43, 28
CONTROL "", IDC_DIALBUTTON_ZERO, "MS_PHONE_BUTTON", 0, 59, 235, 43, 28
CONTROL "", IDC_DIALBUTTON_POUND, "MS_PHONE_BUTTON", 0, 112, 235, 43, 28
// command buttons
CONTROL "", IDC_ERASE_BUTTON, "MS_PHONE_BUTTON", 0, 163, 124, 71, 28
CONTROL "", IDC_HISTORY, "MS_PHONE_BUTTON", 0, 163, 161, 71, 28
CONTROL "", IDC_TALK, "MS_PHONE_BUTTON", 0, 163, 198, 71, 28
CONTROL "", IDC_END, "MS_PHONE_BUTTON", 0, 163, 235, 71, 28
END // end dialog
IDD_CPROG_PORT_CDMA DIALOG DISCARDABLE 0, 0, 240, 320
STYLE DS_USEPIXELS
BEGIN
// offscreen, invisible. layout helper control. Regulates the IDC_INVALIDPHONEAREA control visibility
CONTROL "", IDC_INVALIDPHONELAYOUTHELPER, "MS_PHONE_LAYOUTHELPER", NOT WS_VISIBLE, -1, 0, 0, 0
// Invalid Phone (No Sim, Invalid Sim, Phone off)
CONTROL "", IDC_INVALIDPHONEAREA, "MS_PHONE_INVALIDPHONE", 0, 6, 0, 228, 23
// branding
CONTROL "", IDC_BRANDING, "MS_PHONE_BRANDING", 0, 6, 0, 110, 23
// status icons
CONTROL "", IDC_STATUSICONS, "MS_PHONE_STATUSICONS", 0, 140, 4, 96, 17
// call state
CONTROL "", IDC_CALLSTATE, "MS_PHONE_CALLSTATE", 0, 6, 25, 123, 18
// elapsed time
CONTROL "", IDC_ELAPSEDTIME, "MS_PHONE_ELAPSEDTIME", 0, 133, 25, 60, 18
// status area
CONTROL "", IDC_STATUSAREA, "MS_PHONE_CALLERIDINFO", 0, 6, 49, 187, 28
// additional callers UI
CONTROL "", IDC_CALLERLIST, "MS_PHONE_CALLERLIST", 0, 6, 86, 228, 55
// offscreen, invisible. layout helper control. Handles accumulator and callerlist visibility
CONTROL "", IDC_ACCUMLAYOUTHELPER, "MS_PHONE_LAYOUTHELPER", NOT WS_VISIBLE, -1, 0, 0, 0
// offscreen, invisible. layout helper control.
CONTROL "", IDC_LAYOUTHELPER, "MS_PHONE_LAYOUTHELPER", NOT WS_VISIBLE, -1, 0, 0, 0
// contact picture
CONTROL "", IDC_CONTACTPICTURE, "MS_PHONE_CONTACTPICTURE", 0, 197, 25, 39, 52
// accumulator
CONTROL "", IDC_PROGRESSACCUMULATOR, "MS_PHONE_ACCUMULATOR", WS_TABSTOP, 6, 163, 228, 27
// command buttons
CONTROL "", IDC_HISTORY_SPEAKER, "MS_PHONE_BUTTON", 0, 6, 198, 71, 28
CONTROL "", IDC_MUTE_SAVE, "MS_PHONE_BUTTON", 0, 83, 198, 71, 28
CONTROL "", IDC_TALK, "MS_PHONE_BUTTON", 0, 163, 198, 71, 28
CONTROL "", IDC_END, "MS_PHONE_BUTTON", 0, 163, 235, 71, 28
CONTROL "", IDC_CONTACTS "MS_PHONE_BUTTON", 0, 83, 235, 71, 28
CONTROL "", IDC_NOTEPAD "MS_PHONE_BUTTON", 0, 6, 235, 71, 28
END // end dialog
// landscape layout
IDD_CDIALER_LAND_CDMA DIALOG DISCARDABLE 0, 0, 320, 240
STYLE DS_USEPIXELS
BEGIN
// offscreen, invisible. layout helper control. Regulates the IDC_INVALIDPHONEAREA control visibility
CONTROL "", IDC_INVALIDPHONELAYOUTHELPER, "MS_PHONE_LAYOUTHELPER", NOT WS_VISIBLE, -1, 0, 0, 0
// Invalid Phone (No Sim, Invalid Sim, Phone off)
CONTROL "", IDC_INVALIDPHONEAREA, "MS_PHONE_INVALIDPHONE", 0, 6, 0, 308, 16
// branding
CONTROL "", IDC_BRANDING, "MS_PHONE_BRANDING", 0, 6, 0, 110, 16
// status icons
CONTROL "", IDC_STATUSICONS, "MS_PHONE_STATUSICONS", 0, 220, 0, 96, 16
// offscreen, invisible. layout helper control.
CONTROL "", IDC_SMARTDIALLAYOUTHELPER, "MS_PHONE_LAYOUTHELPER", NOT WS_VISIBLE, -1, 0, 0, 0
// call state
CONTROL "", IDC_CALLSTATE, "MS_PHONE_CALLSTATE", 0, 6, 32, 203, 18
// elapsed time
CONTROL "", IDC_ELAPSEDTIME, "MS_PHONE_ELAPSEDTIME", 0, 256, 32, 60, 18
// accumulator
CONTROL "", IDC_ACCUMULATOR, "MS_PHONE_ACCUMULATOR", 0, 0, 16, 320, 19
// smartdial
CONTROL "", IDC_SMARTDIAL, "MS_PHONE_SMARTDIAL", WS_TABSTOP, 0, 35, 320, 36
// key pad
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -