blob: ec140153e5820f882c7d67cf85124c85b2b6d1aa [file] [log] [blame]
Dennis Syrovatskyf3c57662005-11-02 03:53:04 +00001/* Copyright (C) 2005 TightVNC Team. All Rights Reserved.
2 *
3 * This is free software; you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation; either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This software is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this software; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
16 * USA.
17 *
18 * TightVNC distribution homepage on the Web: http://www.tightvnc.com/
19 *
20 */
21
22// -=- FTListView.h
23
24#ifndef __RFB_WIN32_FTLISTVIEW_H__
25#define __RFB_WIN32_FTLISTVIEW_H__
26
27#include <windows.h>
28
29#include <rfb/FileInfo.h>
30#include <rfb_win32/FolderManager.h>
31#include <rfb_win32/ListViewControl.h>
32#include <vncviewer/resource.h>
33
34namespace rfb {
35 namespace win32{
36 class FTListView : private ListViewControl
37 {
38 public:
39 FTListView(HWND hLV);
40 ~FTListView();
41
42 bool initialize();
43
44 void onGetDispInfo(NMLVDISPINFO *di);
45 void addItems(FileInfo *pFI);
46 void deleteAllItems();
47 void initImageList(HINSTANCE hInst);
48
49 char *getActivateItemName(LPNMITEMACTIVATE lpnmia);
50 int getSelectedItems(FileInfo *pFI);
51
52 HWND getWndHandle() { return m_hListView; };
53
54 private:
55 HWND m_hListView;
56 FileInfo m_fileInfo;
57 HIMAGELIST m_hImageList;
58
59 };
60 }
61}
62
63#endif // __RFB_WIN32_FTLISTVIEW_H__