📄 vtimer.h
字号:
//===============================================================// vtimer.h - a timer class - Windows//// Copyright (C) 1995,1996 Bruce E. Wampler//// This file is part of the V C++ GUI Framework, and is covered// under the terms of the GNU Library General Public License,// Version 2. This library has NO WARRANTY. See the source file// vapp.cxx for more complete information about license terms.//===============================================================#ifndef VTIMER_H#define VTIMER_H#include <windows.h> class V_EXPORT vTimer { friend void CALLBACK vTimerProc(HWND hwnd, UINT msg, UINT idTimer, DWORD dwTime); public: //---------------------------------------- public vTimer(); // constructor virtual ~vTimer(); // destructor virtual int TimerSet(long interval); virtual void TimerStop(void); virtual void TimerTick(void); protected: //--------------------------------------- protected private: //--------------------------------------- private void tick(void); // internal tick routine long _interval; // approx. how long in milliseconds between ticks HWND _id; };#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -