Migrating to new directory structure adopted from the RealVNC's source tree. More changes will follow.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@591 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/win/winvnc/ControlPanel.h b/win/winvnc/ControlPanel.h
new file mode 100644
index 0000000..73b859f
--- /dev/null
+++ b/win/winvnc/ControlPanel.h
@@ -0,0 +1,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 <rfb_win32/Dialog.h>
+#include <rfb_win32/ListViewControl.h>
+#include <rfb_win32/Win32Util.h>
+#include <rfb/ListConnInfo.h>
+
+namespace winvnc {
+
+ class ControlPanel : rfb::win32::Dialog, rfb::win32::ListViewControl {
+ public:
+ ControlPanel(HWND hSTIcon) : Dialog(GetModuleHandle(0)), ListViewControl(){
+ m_hSTIcon = hSTIcon;
+ stop_updating = false;
+ };
+ virtual bool showDialog();
+ virtual void initDialog();
+ virtual bool onCommand(int cmd);
+ void UpdateListView(rfb::ListConnInfo* LCInfo);
+ HWND GetHandle() {return handle;};
+ void SendCommand(DWORD command, int data);
+ ~ControlPanel();
+ rfb::ListConnInfo ListConnStatus;
+ protected:
+ virtual BOOL dialogProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
+ void getSelConnInfo();
+ HWND m_hSTIcon;
+ rfb::ListConnInfo ListConn;
+ rfb::ListConnInfo ListSelConn;
+ bool stop_updating;
+ };
+};
+
+#endif
\ No newline at end of file