Leaked source code of windows server 2003
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.

43 lines
1.4 KiB

  1. #pragma once
  2. #include "stdafx.h"
  3. #include <windows.h>
  4. #include "resource.h"
  5. #include "atlsnap.h"
  6. #include "netconp.h"
  7. class CStatusDialog : public CSnapInPropertyPageImpl<CStatusDialog, FALSE>
  8. {
  9. public:
  10. BEGIN_MSG_MAP(CStatusDialog)
  11. MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  12. MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
  13. MESSAGE_HANDLER(WM_TIMER, OnTimer)
  14. COMMAND_ID_HANDLER(IDC_STATUS_PROPERTIES, OnProperties)
  15. COMMAND_ID_HANDLER(IDC_STATUS_DISCONNECT, OnDisconnect)
  16. COMMAND_ID_HANDLER(IDC_STATUS_CONNECT, OnConnect)
  17. END_MSG_MAP()
  18. enum { IDD = IDD_STATUS };
  19. CStatusDialog(IInternetGateway* pInternetGateway);
  20. ~CStatusDialog();
  21. private:
  22. LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  23. LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  24. LRESULT OnTimer(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
  25. LRESULT OnProperties(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  26. LRESULT OnDisconnect(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  27. LRESULT OnConnect(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
  28. LRESULT UpdateButtons(NETCON_STATUS Status);
  29. IInternetGateway* m_pInternetGateway;
  30. UINT_PTR m_uTimerId;
  31. BOOL m_bGettingStatistics;
  32. BOOL m_bShowingBytes;
  33. };