📄 calllistdialog.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 __CALLLISTDIALOG_HPP__
#define __CALLLISTDIALOG_HPP__
#include <windows.h>
#include "vector.hxx"
#include "voipstore.h"
#include <atlbase.h>
#include "Controls.hpp"
#include "Dialog.hpp"
#include "resource.h"
//forward declaration
class CallDetailsDialog_t;
class CallListDialog_t : public DialogScreen_t
{
public:
CallListDialog_t(
InfoApp_t::ScreenId Id
);
~CallListDialog_t();
HRESULT
CreateDialogScreen();
BOOL
HookProc(
HWND hwnd,
UINT Message,
WPARAM wParam,
LPARAM lParam
);
int GetHelpStringId() { return IDS_SCREENHELP_DEFAULT; }
private:
enum QuestionType_e
{
QuestionInvalid = 0,
QuestionBlockCaller,
QuestionDeleteAll,
};
HRESULT
GetSelectedCallRecord(
IVoIPCallRecord** ppCallRecord
);
InfoApp_t::ScreenId
GetCallDetailsScreenId (
void
);
HRESULT
OnDelete (
void
);
HRESULT
OnCallLogEntryDetails (
void
);
HRESULT
OnDial (
void
);
HRESULT
OnBlock(
void
);
BOOL
OnCommand(
WPARAM wParam
);
HRESULT
OnSelectionChange(
void
);
HRESULT
OnNotify(
WPARAM wParam,
LPARAM lParam
);
HRESULT
UpdateStatus(
void
);
HRESULT
UpdateMenuBar(
void
);
HRESULT
Refresh(
void
);
HRESULT
BlockCaller(
void
);
HRESULT
OnDeleteAll(
void
);
HRESULT
ClearCallLog(
void
);
void
CloseCurrentMessageBox(
void
);
HRESULT
GetCallerInfoFromSelectedCallRecord (
IVoIPCallerInfoRecord** ppCallerInfoRecord,
bool CreateRecord
);
private:
CComPtr<IVoIPCallLogDBEnum> m_cpEnum;
CComPtr<IVoIPCallerInfoDB> m_cpCallerInfoDB;
InfoApp_t::ScreenId m_ScreenId;
CallDetailsDialog_t* m_pCallDetails;
UINT m_CurrentMenuId;
HWND m_MessageBox;
QuestionType_e m_PendingQuestion;
HREGNOTIFY m_NotifyHandle;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -