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