📄 gallistdialog.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 __CONTACTLISTDIALOG_HPP__
#define __CONTACTLISTDIALOG_HPP__
#include <windows.h>
#include <atlbase.h>
#include <atlcom.h>
#include "string.hxx"
#include "IExchangeClient.h"
#include "InfoApp.hpp"
#include "Dialog.hpp"
#include "Resource.h"
#include "CallDetailsDialog.hpp"
class
GalListDialog_t : public DialogScreen_t
{
public:
enum GalFilter_e
{
FirstName = 0,
LastName,
Alias,
UnknownFilter, // MUST be last in the enumeration
};
public:
GalListDialog_t();
~GalListDialog_t();
public:
int GetHelpStringId() { return IDS_SCREENHELP_GAL; }
public:
BOOL
HookProc(
HWND hwnd,
UINT Message,
WPARAM wParam,
LPARAM lParam
);
HRESULT
CreateDialogScreen(
void
);
private:
HRESULT
DisplayGALContacts(
void
);
HRESULT
CreateExchangeRequest(
void
);
HRESULT
AddSearchInputListBox (
void
);
HRESULT
UpdateTimer (
void
);
HRESULT
UpdateStatus (
void
);
HRESULT
OnTimer (
UINT TimerID
);
HRESULT
OnCommand (
WPARAM wParam
);
HRESULT
OnNotify(
WPARAM wParam,
LPARAM lParam
);
HRESULT
OnDial(
void
);
HRESULT
OnEditControlUpdate (
void
);
HRESULT
OnListBoxSelectionChange (
void
);
HRESULT
OnExchangeQueryProgress (
IExchangeClientRequest* piRequest,
ExchangeClientRequestStatus status
);
HRESULT
OnDetails (
void
);
HRESULT
UpdateSearchInputListBoxTitle(
UINT TitleResourceId
);
HRESULT
ShowProgressStatusMessage(
ExchangeClientRequestStatus Status
);
HRESULT
ShowSettingsAppOnError (
void
);
HRESULT
GetSelectedGAL(
IExchangeClientGALSearchInformation** ppGAL
);
void
ClearSearchResults (
void
);
private:
UINT m_cRefs;
UINT m_GalQueryTimerId;
UINT m_CurrentMenuId;
UINT m_ErrorMenuId;
bool m_RefreshNeeded;
GalFilter_e m_FilterType;
ce::wstring m_QueryValue;
CallDetailsDialog_t* m_pGalRecordDetails;
CComPtr<IExchangeClientRequest> m_cpExchangeRequest;
CComPtr<IExchangeClient> m_cpExchangeClient;
private:
static const UINT sc_WaitThreshold = 250;
static const UINT sc_GalRequestTimer = 1000;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -