⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 control.h

📁 通用网络游戏开发框架
💻 H
字号:
// This file needs -*- c++ -*- mode
// ============================================================================
// Control Interface
//
// This is just a facade to hide the Windows API functions for dealing with
// controls behind some (hopefully) some more meaningfull names.
//
// (c) 2003 Ken Reed
//
// This is free software. You can redistribute it and/or modify it under the
// terms of the GNU General Public License version 2 as published by the Free
// Software Foundation.
// ============================================================================

#pragma once

class Control {
public:
   Control (const int id);
   operator HWND() const;

   bool get_state ();
   void enable    (bool state);
   void checked   (bool state);
   void set_range (int low, int high);
   void set_value (int value);
   int  get_value ();

   int  id;
   HWND dialog;
   HWND handle;
};

extern void register_controls(HWND dialog);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -