blob: 94baca383889a3190a03b03232dda83987359d2a [file] [log] [blame]
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001/* Copyright (C) 2002-2003 RealVNC Ltd. 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
19// -=- MsgWindow.h
20
21// Base-class for any hidden message-handling windows used in the rfb::win32
22// implementation.
23
24#ifndef __RFB_WIN32_MSG_WINDOW_H__
25#define __RFB_WIN32_MSG_WINDOW_H__
26
27#define WIN32_LEAN_AND_MEAN
28#include <windows.h>
29
30#include <rfb_win32/TCharArray.h>
31
32namespace rfb {
33
34 namespace win32 {
35
36 class MsgWindow {
37 public:
38 MsgWindow(const TCHAR* _name);
39 virtual ~MsgWindow();
40
41 const TCHAR* getName() {return name.buf;}
42 HWND getHandle() const {return handle;}
43
44 virtual LRESULT processMessage(UINT msg, WPARAM wParam, LPARAM lParam);
45
46 protected:
47 TCharArray name;
48 HWND handle;
49 };
50
51 };
52
53};
54
55#endif // __RFB_WIN32_MSG_WINDOW_H__