Oleg Sheikin | f5049ad | 2005-07-01 12:41:15 +0000 | [diff] [blame^] | 1 | // 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 | |
| 20 | namespace 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 |