CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/external/source/vncdll/winvnc/MatchWindow.h
Views: 11779
1
// Copyright (C) 2001 HorizonLive.com, Inc. All Rights Reserved.
2
//
3
// This file is part of the VNC system.
4
//
5
// The VNC system is free software; you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation; either version 2 of the License, or
8
// (at your option) any later version.
9
//
10
// This program is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with this program; if not, write to the Free Software
17
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
18
// USA.
19
//
20
// TightVNC distribution homepage on the Web: http://www.tightvnc.com/
21
22
23
// MatchWindow.h: interface for the CMatchWindow class.
24
//
25
//////////////////////////////////////////////////////////////////////
26
27
#if !defined(AFX_MATCHWINDOW_H__11975916_3DA2_11D3_8EA3_008048C6AFB8__INCLUDED_)
28
#define AFX_MATCHWINDOW_H__11975916_3DA2_11D3_8EA3_008048C6AFB8__INCLUDED_
29
30
#if _MSC_VER > 1000
31
#pragma once
32
#endif // _MSC_VER > 1000
33
34
class vncServer;
35
36
class CMatchWindow
37
{
38
public:
39
BOOL ModifyPosition(int left,int top, int right,int bottom);
40
CMatchWindow(vncServer* pDlg,int left,int top, int right,int bottom);
41
virtual ~CMatchWindow();
42
void GetPosition(int &left,int &top, int &right,int &bottom);
43
HWND m_hWnd;
44
BOOL m_bSized;
45
POINT m_TrackerHits[8];
46
int HitTest(POINT&); // -1 = no Hits; 0-7 Numb. of Hit
47
void ArrangeHits();
48
void ChangeRegion();
49
void Show();
50
void Hide();
51
void CanModify(BOOL);
52
static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
53
vncServer* m_pServer;
54
};
55
56
#endif // !defined(AFX_MATCHWINDOW_H__11975916_3DA2_11D3_8EA3_008048C6AFB8__INCLUDED_)
57
58