📄 speeddialeditdialog.hpp
字号:
//
// 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 __SPEEDDIALEDITDIALOG_HPP__
#define __SPEEDDIALEDITDIALOG_HPP__
#include "Dialog.hpp"
#include <atlbase.h>
#include "voipstore.h"
#include "RingtoneIterator.h"
#include "resource.h"
//forward declarations
class InfoApp_t;
interface IVoIPDisplayItem;
/*------------------------------------------------------------------------------
SpeedDialListDialog_t
Class representing a list of speed dial entries
------------------------------------------------------------------------------*/
class SpeedDialEditDialog_t :
public DialogScreen_t
{
public:
SpeedDialEditDialog_t();
~SpeedDialEditDialog_t();
HRESULT
CreateDialogScreen(
__in_opt IUnknown* pUnknown,
__in InfoApp_t* pApp
);
BOOL
HookProc(
HWND hwnd,
UINT Message,
WPARAM wParam,
LPARAM lParam
);
int GetHelpStringId() { return IDS_SCREENHELP_EDITSPEEDDIAL; }
private:
HRESULT OnInitDialog();
HRESULT OnChangeRingtone();
HRESULT SaveProperties();
HRESULT UpdateMenuBar();
HRESULT UpdateStatusRegion();
HRESULT SetDefaultItemText(
int id,
__in IVoIPDisplayItem* pItem
);
HRESULT GetRingtoneIndex(
__in const WCHAR* pRingtone
);
HRESULT GetRingtoneText(
__out_ecount(BufferLen) WCHAR* pBuffer,
UINT BufferLen
);
HRESULT CreateAppropriateRecord();
VOID ShowHideBackspaceButton();
private:
CComPtr<IVoIPCallerInfoDB> m_cpCallerInfoDB;
CComPtr<IUnknown> m_cpUnknown;
CComPtr<IVoIPCallerInfoRecord> m_cpRecord;
INT m_SpeedDialIndex;
INT m_RingtoneIndex;
CRingtoneIterator m_RingtoneIterator;
};
#endif // !defined __SPEEDDIALEDITDIALOG_HPP__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -