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

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. #pragma once
  2. #include "stdafx.h"
  3. #include "resource.h"
  4. using namespace ATL;
  5. class CMainWindow :
  6. public CWindowImpl<CMainWindow>
  7. {
  8. bool _schedule_updates;
  9. static const auto WM_PEP_NOTIFICATION = WM_USER + 23;
  10. public:
  11. CMainWindow();
  12. DECLARE_WND_CLASS(_T("pEpCOMServerAdapterMainWndClass"))
  13. BEGIN_MSG_MAP(CMainWindow)
  14. MESSAGE_HANDLER(WM_CREATE, OnCreate)
  15. MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
  16. MESSAGE_HANDLER(WM_PEP_NOTIFICATION, OnNotification)
  17. MESSAGE_HANDLER(WM_MENUCOMMAND, OnMenuCommand)
  18. END_MSG_MAP()
  19. LRESULT OnCreate(UINT /*nMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
  20. LRESULT OnDestroy(UINT /*nMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
  21. LRESULT OnNotification(UINT /*nMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
  22. LRESULT OnMenuCommand(UINT /*nMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
  23. typedef std::basic_string<TCHAR> tstring;
  24. static tstring r(UINT resid);
  25. void ShowNotificationInfo(tstring title, tstring text);
  26. };