blob: ed761ead5da92fe7ba71b2e99e896a2b78400aee [file] [log] [blame]
Oleg Sheikinf5049ad2005-07-01 12:41:15 +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
14#include <winvnc/VNCServerWin32.h>
15#include <winvnc/resource.h>
16#include <rfb_win32/Dialog.h>
17#include <rfb_win32/ListViewControl.h>
18#include <rfb_win32/Win32Util.h>
19
20namespace winvnc {
21
22 class ControlPanel : rfb::win32::Dialog, rfb::win32::ListViewControl {
23 public:
24 ControlPanel(VNCServerWin32 * server, HWND hSTIcon) : Dialog(GetModuleHandle(0)), ListViewControl(){
25 m_server = server;
26 m_hSTIcon = hSTIcon;
27 };
28 virtual bool showDialog();
29 virtual void initDialog();
30 virtual bool onCommand(int cmd);
31 void UpdateListView();
32 HWND GetHandle() {return handle;};
33 ~ControlPanel();
34 protected:
35 virtual BOOL dialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
36 void getSelectedConn(std::list<network::Socket*>* selsockets);
37 VNCServerWin32 * m_server;
38 std::list<network::Socket*> sockets;
39 HWND m_hSTIcon;
40 };
41};
42
43#endif