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/IncomingConnectionsControls.h
Views: 11778
// Copyright (C) 2004 TightVNC Development Team. 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// IncomingConnectionsControls.h: interface for the IncomingConnectionsControls class.2021#ifndef _WINVNC_INCOMINGCONNECTIONSCONTROLS_H22#define _WINVNC_INCOMINGCONNECTIONSCONTROLS_H23#pragma once2425#include "resource.h"26#include "vncServer.h"2728class IncomingConnectionsControls29{30public:31IncomingConnectionsControls(HWND hwnd, vncServer *server);32void Validate(BOOL InitApply);33void Apply();34void Init();35void InitPortSettings(BOOL CheckedButton);36BOOL SetPasswordSettings(DWORD idEditBox);37virtual ~IncomingConnectionsControls();3839private:40inline void Enable(int id, BOOL enable) {41EnableWindow(GetDlgItem(m_hwnd, id), enable);42}43inline void SetChecked(int id, BOOL checked) {44SendDlgItemMessage(m_hwnd, id, BM_SETCHECK, checked, 0);45}46inline BOOL IsChecked(int id) {47return (SendDlgItemMessage(m_hwnd, id, BM_GETCHECK, 0, 0) == BST_CHECKED);48}49vncServer * m_server;50HWND m_hwnd;51};5253#endif545556