blob: f64a60813966c15a885b128ca0fa6d014b8dd660 [file] [log] [blame]
Constantin Kaplinsky729598c2006-05-25 05:12:25 +00001// ControlPanel.h: interface for the ControlPanel class.
2//
3//////////////////////////////////////////////////////////////////////
4
5#ifndef AFX_CONTROLPANEL_H__
6#define AFX_CONTROLPANEL_H__
7
8
9#pragma once
10
11
12#include <list>
13#include <winvnc/resource.h>
Pierre Ossman025326d2018-10-08 16:03:01 +020014#include <winvnc/ListConnInfo.h>
Constantin Kaplinsky729598c2006-05-25 05:12:25 +000015#include <rfb_win32/Dialog.h>
16#include <rfb_win32/ListViewControl.h>
17#include <rfb_win32/Win32Util.h>
Constantin Kaplinsky729598c2006-05-25 05:12:25 +000018
19namespace winvnc {
20
21 class ControlPanel : rfb::win32::Dialog, rfb::win32::ListViewControl {
22 public:
23 ControlPanel(HWND hSTIcon) : Dialog(GetModuleHandle(0)), ListViewControl(){
24 m_hSTIcon = hSTIcon;
25 stop_updating = false;
26 };
27 virtual bool showDialog();
28 virtual void initDialog();
29 virtual bool onCommand(int cmd);
Pierre Ossman025326d2018-10-08 16:03:01 +020030 void UpdateListView(ListConnInfo* LCInfo);
Constantin Kaplinsky729598c2006-05-25 05:12:25 +000031 HWND GetHandle() {return handle;};
32 void SendCommand(DWORD command, int data);
33 ~ControlPanel();
Pierre Ossman025326d2018-10-08 16:03:01 +020034 ListConnInfo ListConnStatus;
Constantin Kaplinsky729598c2006-05-25 05:12:25 +000035 protected:
36 virtual BOOL dialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
37 void getSelConnInfo();
38 HWND m_hSTIcon;
Pierre Ossman025326d2018-10-08 16:03:01 +020039 ListConnInfo ListConn;
40 ListConnInfo ListSelConn;
Constantin Kaplinsky729598c2006-05-25 05:12:25 +000041 bool stop_updating;
42 };
43};
44
Pierre Ossman025326d2018-10-08 16:03:01 +020045#endif