blob: 5f9bc2407eee03126402a16a71298d89b5dd28a9 [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 {
Oleg Sheikin14757372005-07-01 13:31:14 +000021
Oleg Sheikinf5049ad2005-07-01 12:41:15 +000022 class ControlPanel : rfb::win32::Dialog, rfb::win32::ListViewControl {
23 public:
Oleg Sheikin14757372005-07-01 13:31:14 +000024 ControlPanel(VNCServerWin32 * server, HWND hSTIcon) : Dialog(GetModuleHandle(0)), ListViewControl(){
25 m_server = server;
26 m_hSTIcon = hSTIcon;
27 };
Oleg Sheikinf5049ad2005-07-01 12:41:15 +000028 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);
Oleg Sheikin14757372005-07-01 13:31:14 +000037 VNCServerWin32 * m_server;
38 std::list<network::Socket*> sockets;
39 HWND m_hSTIcon;
Oleg Sheikinf5049ad2005-07-01 12:41:15 +000040 };
41};
42
43#endif