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.

ControlPanel.h 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // ControlPanel.h: interface for the ControlPanel class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #ifndef AFX_CONTROLPANEL_H__
  5. #define AFX_CONTROLPANEL_H__
  6. #pragma once
  7. #include <list>
  8. #include <winvnc/resource.h>
  9. #include <winvnc/ListConnInfo.h>
  10. #include <rfb_win32/Dialog.h>
  11. #include <rfb_win32/ListViewControl.h>
  12. #include <rfb_win32/Win32Util.h>
  13. namespace winvnc {
  14. class ControlPanel : rfb::win32::Dialog, rfb::win32::ListViewControl {
  15. public:
  16. ControlPanel(HWND hSTIcon) : Dialog(GetModuleHandle(0)), ListViewControl(){
  17. m_hSTIcon = hSTIcon;
  18. stop_updating = false;
  19. };
  20. virtual bool showDialog();
  21. virtual void initDialog();
  22. virtual bool onCommand(int cmd);
  23. void UpdateListView(ListConnInfo* LCInfo);
  24. HWND GetHandle() {return handle;};
  25. void SendCommand(DWORD command, int data);
  26. ~ControlPanel();
  27. ListConnInfo ListConnStatus;
  28. protected:
  29. virtual BOOL dialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  30. void getSelConnInfo();
  31. HWND m_hSTIcon;
  32. ListConnInfo ListConn;
  33. ListConnInfo ListSelConn;
  34. bool stop_updating;
  35. };
  36. };
  37. #endif