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/QuerySettingsControls.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// QuerySettingsControls.h: interface for the QuerySettingsControls class.2021#ifndef _WINVNC_QUERYSETTINGSCONTROLS_H22#define _WINVNC_QUERYSETTINGSCONTROLS_H23#pragma once2425#include "resource.h"26#include "vncServer.h"2728class QuerySettingsControls29{30public:31QuerySettingsControls(HWND hwnd, vncServer * m_server);32void Validate();33void Apply();34void Init();35virtual ~QuerySettingsControls();36private:37inline void Enable(int id, BOOL enable) {38EnableWindow(GetDlgItem(m_hwnd, id), enable);39}40inline void SetChecked(int id, BOOL checked) {41SendDlgItemMessage(m_hwnd, id, BM_SETCHECK, checked, 0);42}43inline BOOL IsChecked(int id) {44return (SendDlgItemMessage(m_hwnd, id, BM_GETCHECK, 0, 0) == BST_CHECKED);45}46vncServer * m_server;47HWND m_hwnd;48};4950#endif515253