Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/external/source/vncdll/winvnc/SharedDesktopArea.h
Views: 11777
// Copyright (C) 2004-2006 TightVNC Group. All Rights Reserved.1//2// TightVNC is free software; you can redistribute it and/or modify3// it under the terms of the GNU General Public License as published by4// the Free Software Foundation; either version 2 of the License, or5// (at your option) any later version.6//7// This program is distributed in the hope that it will be useful,8// but WITHOUT ANY WARRANTY; without even the implied warranty of9// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the10// GNU General Public License for more details.11//12// You should have received a copy of the GNU General Public License13// along with this program; if not, write to the Free Software14// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,15// USA.16//17// TightVNC homepage on the Web: http://www.tightvnc.com/1819// SharedDesktopArea.h: interface for the SharedDesktopArea class.2021#ifndef SHAREDDESKTOPAREA_H__22#define SHAREDDESKTOPAREA_H__2324class SharedDesktopArea;2526#include "resource.h"2728#include "vncServer.h"29#include "vncProperties.h"30#include "MatchWindow.h"3132class SharedDesktopArea33{34public:35SharedDesktopArea(HWND hwnd, CMatchWindow *matchwindow, vncServer *server);36virtual ~SharedDesktopArea();3738void Validate();39bool Apply();4041protected:42// FIXME: hwndShared instead of hWnd argument?43void SetWindowCaption(HWND hWnd);4445private:46void Init();47void SetupMatchWindow();48static void DrawFrameAroundWindow(HWND hWnd);49static LRESULT CALLBACK BmpWndProc(HWND, UINT, WPARAM, LPARAM);5051void EnableWinSelectionControls(BOOL bEnable, LPCTSTR szWinText);5253inline void Enable(int id, BOOL enable) {54EnableWindow(GetDlgItem(m_hwnd, id), enable);55}56inline void SetChecked(int id, BOOL checked) {57SendDlgItemMessage(m_hwnd, id, BM_SETCHECK, checked, 0);58}59inline BOOL IsChecked(int id) {60return (SendDlgItemMessage(m_hwnd, id, BM_GETCHECK, 0, 0) == BST_CHECKED);61}62inline void SetText(int id, LPCTSTR szText) {63::SetWindowText(GetDlgItem(m_hwnd, id), szText);64}6566HWND m_hwnd;67LONG m_OldBmpWndProc;68BOOL m_bCaptured;69HWND m_KeepHandle;70HWND m_hwndShared;71vncServer *m_server;7273CMatchWindow *m_pMatchWindow;74bool m_deleteMatchWindow;75};7677#endif787980