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/PollControls.h
Views: 11780
// 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// PollControls.h: interface for the PollControls class.202122#ifndef POLLCONTROLS_H__23#define POLLCONTROLS_H__2425#pragma once2627#include "resource.h"28#include "vncServer.h"2930class PollControls31{32public:33PollControls(HWND hwnd, vncServer *server);34void Validate();35void Apply();3637private:38inline void Enable(int id, BOOL enable) {39EnableWindow(GetDlgItem(m_hwnd, id), enable);40}41inline void SetChecked(int id, BOOL checked) {42SendDlgItemMessage(m_hwnd, id, BM_SETCHECK, checked, 0);43}44inline BOOL IsChecked(int id) {45return (SendDlgItemMessage(m_hwnd, id, BM_GETCHECK, 0, 0) == BST_CHECKED);46}4748HWND m_hwnd;49vncServer *m_server;50};5152#endif535455