p≡p COM server adapter
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

32 lines
1.1 KiB

#pragma once
#include "stdafx.h"
#include "resource.h"
using namespace ATL;
class CMainWindow :
public CWindowImpl<CMainWindow>
{
bool _schedule_updates;
static const auto WM_PEP_NOTIFICATION = WM_USER + 23;
public:
CMainWindow();
DECLARE_WND_CLASS(_T("pEpCOMServerAdapterMainWndClass"))
BEGIN_MSG_MAP(CMainWindow)
MESSAGE_HANDLER(WM_CREATE, OnCreate)
MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
MESSAGE_HANDLER(WM_PEP_NOTIFICATION, OnNotification)
MESSAGE_HANDLER(WM_MENUCOMMAND, OnMenuCommand)
END_MSG_MAP()
LRESULT OnCreate(UINT /*nMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
LRESULT OnDestroy(UINT /*nMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
LRESULT OnNotification(UINT /*nMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
LRESULT OnMenuCommand(UINT /*nMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
typedef std::basic_string<TCHAR> tstring;
static tstring r(UINT resid);
void ShowNotificationInfo(tstring title, tstring text);
};