亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? timer-lite.c

?? linux下的圖形界面開發minigui最新源代碼
?? C
字號:
/*** $Id: timer-lite.c,v 1.22 2003/09/04 03:46:47 weiym Exp $**** timer-lite.c: The timer handling for MiniGUI Lite Version.**** Copyright (C) 2003 Feynman Software.** Copyright (C) 1999 ~ 2002 Wei Yongming.**** Current maintainer: Wei Yongming.**** Create date: 1999.04.21*/ /*** This program is free software; you can redistribute it and/or modify** it under the terms of the GNU General Public License as published by** the Free Software Foundation; either version 2 of the License, or** (at your option) any later version.**** This program is distributed in the hope that it will be useful,** but WITHOUT ANY WARRANTY; without even the implied warranty of** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the** GNU General Public License for more details.**** You should have received a copy of the GNU General Public License** along with this program; if not, write to the Free Software** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA*//*** TODO:*/ #include <stdio.h>#include <stdlib.h>#include <string.h>#include <signal.h>#include <unistd.h>#include "common.h"#include "minigui.h"#include "gdi.h"#include "window.h"#include "cliprect.h"#include "gal.h"#include "internals.h"#include "timer.h"#ifndef _STAND_ALONE#include "client.h"#include "sharedres.h"#endifunsigned int __mg_timer_counter;static TIMER *timerstr [MAX_TIMERS];BOOL InitTimer (void){    return TRUE;}void TerminateTimer (void){    int i;    for (i = 0; i < MAX_TIMERS; i++) {        if (timerstr[i] != NULL)            free (timerstr[i]);        timerstr[i] = NULL;    }}/************************* Functions run in desktop thread *******************/void DispatchTimerMessage (unsigned int inter){    PMAINWIN pWin;    PMSGQUEUE pMsgQueue;    int i, slot;    for (i = 0; i < MAX_TIMERS; i++ ) {        if ( timerstr[i] ) {#if _TIMER_UNIT_10MS    	    timerstr[i]->count += inter;#else    	    timerstr[i]->count += 1<<7;#endif            if ( timerstr[i]->count >= timerstr[i]->speed ) {                pWin = GetMainWindowPtrOfControl (timerstr[i]->hWnd);                if (pWin == NULL) continue;                pMsgQueue = pWin->pMessages;                for (slot = 0; slot < DEF_NR_TIMERS; slot++) {                    if (pMsgQueue->TimerID[slot] == timerstr[i]->id                        && pMsgQueue->TimerOwner[slot] == timerstr[i]->hWnd)                        break;                }                if (slot != DEF_NR_TIMERS) {                    pMsgQueue->dwState |= (0x01 << slot);                }                timerstr[i]->count -= timerstr[i]->speed;            }        }    }}BOOL AddTimer (HWND hWnd, int id, unsigned int speed){    int i;    PMAINWIN pWin;    PMSGQUEUE pMsgQueue;    int slot;    if (!(pWin = GetMainWindowPtrOfControl (hWnd))) return FALSE;    pMsgQueue = pWin->pMessages;    // Is there an empty timer slot?    for (slot = 0; slot < DEF_NR_TIMERS; slot++) {        if ((pMsgQueue->TimerMask >> slot) & 0x01)            break;    }    if (slot == DEF_NR_TIMERS) goto badret;    for (i = 0; i < MAX_TIMERS; i++)        if ( timerstr[i] != NULL )            if ( timerstr[i]->hWnd == hWnd && timerstr[i]->id == id)                goto badret;    for (i = 0; i < MAX_TIMERS; i++)        if ( timerstr[i] == NULL )            break;    if (i == MAX_TIMERS)        goto badret ;    timerstr[i] = malloc (sizeof (TIMER));#if _TIMER_UNIT_10MS    timerstr[i]->speed = speed;#else    timerstr[i]->speed = (1000<<7)/speed;#endif    timerstr[i]->hWnd = hWnd;    timerstr[i]->id = id;    timerstr[i]->count = 0;    pMsgQueue->TimerOwner[slot] = hWnd;    pMsgQueue->TimerID[slot] = id;    pMsgQueue->TimerMask &= ~(0x01 << slot);#ifndef _STAND_ALONE    if (!mgIsServer)        set_select_timeout (USEC_10MS * speed);#endif    return TRUE;    badret:    return FALSE;}BOOL RemoveTimer (HWND hWnd, int id){    int i;    PMAINWIN pWin;    PMSGQUEUE pMsgQueue;    int slot;    void* temp;    if (!(pWin = GetMainWindowPtrOfControl (hWnd))) return FALSE;    pMsgQueue = pWin->pMessages;    for (slot = 0; slot < DEF_NR_TIMERS; slot++) {        if (pMsgQueue->TimerOwner[slot] == hWnd && pMsgQueue->TimerID[slot] == id)            break;    }    if (slot == DEF_NR_TIMERS) goto badret;    for (i = 0; i < MAX_TIMERS; i++)        if (timerstr[i] != NULL)            if (timerstr[i]->hWnd == hWnd && timerstr[i]->id == id)                break;    if (i == MAX_TIMERS) goto badret;        temp = timerstr[i];    timerstr[i] = NULL;    free (temp);    pMsgQueue->TimerMask |= (0x01 << slot);#ifndef _STAND_ALONE    if (!pMsgQueue->TimerMask && !mgIsServer)        set_select_timeout (0);#endif            return TRUE;badret:    return FALSE;}BOOL GUIAPI IsTimerInstalled (HWND hWnd, int id){    int i;    for (i=0; i<MAX_TIMERS; i++) {        if ( timerstr[i] != NULL ) {            if ( timerstr[i]->hWnd == hWnd && timerstr[i]->id == id) {                return TRUE;            }        }    }    return FALSE;}BOOL SetTimerSpeed (HWND hWnd, int id, unsigned int speed){    int i;        for (i=0; i<MAX_TIMERS; i++)	if (timerstr[i]->hWnd == hWnd && timerstr[i]->id == id) {#if _TIMER_UNIT_10MS		timerstr[i]->speed = speed;#else		timerstr[i]->speed = (1000<<7)/speed;#endif		timerstr[i]->count = 0;        return TRUE;	}    return FALSE;}/****************** Timer Interfaces for applications ************************/unsigned int GUIAPI GetTickCount (){#ifdef _STAND_ALONE    return __mg_timer_counter;#else    return SHAREDRES_TIMER_COUNTER;#endif}BOOL GUIAPI SetTimer (HWND hWnd, int id, unsigned int speed){    TIMER timer;        timer.hWnd = hWnd;    timer.id = id;    timer.speed = speed;        return SendMessage (HWND_DESKTOP, MSG_ADDTIMER, 0, (LPARAM)&timer);}BOOL GUIAPI KillTimer (HWND hWnd, int id){    TIMER timer;        timer.hWnd = hWnd;    timer.id = id;        return SendMessage (HWND_DESKTOP, MSG_REMOVETIMER, 0, (LPARAM)&timer);}BOOL GUIAPI ResetTimer (HWND hWnd, int id, unsigned int speed){    TIMER timer;        timer.hWnd = hWnd;    timer.id = id;    timer.speed = speed;        return SendMessage (HWND_DESKTOP, MSG_RESETTIMER, 0, (LPARAM)&timer);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线观看av不卡| 美女精品一区二区| 国内欧美视频一区二区| 波多野结衣在线一区| 欧美一二区视频| 久久品道一品道久久精品| 一区二区久久久久| 九九视频精品免费| 成人动漫中文字幕| 日韩视频一区二区三区 | 国产精华液一区二区三区| 91丨porny丨最新| www国产成人免费观看视频 深夜成人网| 亚洲婷婷综合久久一本伊一区| 国产精品每日更新| 石原莉奈一区二区三区在线观看| 国产69精品久久久久777| 3d成人动漫网站| 亚洲制服丝袜av| jizzjizzjizz欧美| 国产日韩欧美精品电影三级在线| 日本成人在线看| 粉嫩av一区二区三区粉嫩| 日韩av在线播放中文字幕| 久久精品国产精品青草| 色综合久久久久综合| 欧美国产在线观看| 亚洲第一精品在线| 一本色道a无线码一区v| 中文字幕第一区综合| 久久爱www久久做| 久久一区二区三区四区| 在线日韩一区二区| 国产精品护士白丝一区av| 国产精品主播直播| 日韩午夜精品电影| 日本不卡一区二区三区| 欧美性猛交xxxxxxxx| 亚洲免费在线电影| 成+人+亚洲+综合天堂| 国产色爱av资源综合区| 激情综合一区二区三区| 精品久久久久久无| 蜜臀av性久久久久蜜臀aⅴ| 欧美欧美欧美欧美首页| 亚洲免费观看在线观看| 91在线视频播放| 国产精品久久影院| 国产91精品露脸国语对白| 久久影院午夜片一区| 免费在线观看成人| 欧美一区二区三区人| 亚洲bt欧美bt精品| 精品视频一区二区不卡| 一区二区欧美视频| www.色综合.com| 中文字幕在线观看不卡| www.欧美.com| 亚洲欧美日韩国产一区二区三区 | 91精品欧美久久久久久动漫 | 欧美日韩国产乱码电影| 亚洲高清不卡在线| 欧美精品 国产精品| 首页亚洲欧美制服丝腿| 欧美一区二区人人喊爽| 极品少妇xxxx精品少妇| 国产亚洲人成网站| 丁香网亚洲国际| 亚洲蜜臀av乱码久久精品| 色婷婷精品久久二区二区蜜臀av| 中文字幕的久久| 99久久精品国产网站| 亚洲靠逼com| 欧美日本在线播放| 91网站在线观看视频| 国产成人一区在线| 国产精品国产精品国产专区不片| 99久久国产免费看| 亚洲国产精品天堂| 欧美va在线播放| 成人自拍视频在线| 一区二区三区欧美视频| 欧美一级片免费看| 国产中文字幕精品| 国产精品天干天干在观线| 91麻豆福利精品推荐| 天堂va蜜桃一区二区三区漫画版| 精品三级av在线| 国内精品在线播放| 亚洲欧洲日韩在线| 欧美日韩国产高清一区二区 | 国产欧美精品日韩区二区麻豆天美 | 欧美亚洲一区二区在线| 一区二区三区精密机械公司| 91精品婷婷国产综合久久竹菊| 韩国av一区二区三区四区| 一区视频在线播放| 91国产丝袜在线播放| 蜜桃av一区二区| 国产精品天美传媒| 日韩午夜在线观看| 在线亚洲一区观看| 风间由美中文字幕在线看视频国产欧美| 一区二区激情视频| 91福利区一区二区三区| 日韩欧美在线不卡| 亚洲精品乱码久久久久久日本蜜臀| 亚洲va韩国va欧美va| 久草热8精品视频在线观看| 国产98色在线|日韩| 欧美羞羞免费网站| 久久久影视传媒| 久久亚洲一级片| 国产精品久久久久9999吃药| 精品一区二区在线播放| 99re成人精品视频| 欧美在线观看你懂的| 欧美国产激情二区三区| 日本三级亚洲精品| 亚洲人吸女人奶水| 久久久久9999亚洲精品| 欧美人狂配大交3d怪物一区 | 久久精品日产第一区二区三区高清版| 欧美日韩在线不卡| 97aⅴ精品视频一二三区| 国产成人综合在线播放| 日本不卡视频在线| 亚洲午夜激情av| 亚洲欧美中日韩| 国产欧美一区二区精品忘忧草| 欧美成人三级在线| 欧美高清你懂得| 欧美探花视频资源| 色菇凉天天综合网| 91免费看片在线观看| 福利电影一区二区三区| 国产一区二区三区免费观看| 久久精品久久久精品美女| 三级欧美韩日大片在线看| 亚洲国产你懂的| 一区二区三区鲁丝不卡| 一区二区三区中文字幕电影| 国产精品不卡视频| 国产精品久久久久永久免费观看 | 欧美亚州韩日在线看免费版国语版| 99免费精品在线观看| 成人免费高清在线观看| 国产成人综合网| 国产不卡在线一区| 丰满放荡岳乱妇91ww| 成人妖精视频yjsp地址| 成人不卡免费av| jlzzjlzz欧美大全| 色综合天天综合在线视频| 色婷婷av一区二区三区gif| 91麻豆6部合集magnet| 91黄色免费看| 欧美偷拍一区二区| 欧美军同video69gay| 欧美丰满少妇xxxxx高潮对白| 欧美精品日韩精品| 日韩一区二区在线观看| 欧美电视剧在线看免费| 久久影院电视剧免费观看| 国产视频不卡一区| 国产精品久久免费看| 亚洲人成精品久久久久久 | 久久久久久亚洲综合| 国产亚洲一区二区三区| 国产欧美日韩精品一区| 亚洲欧洲日产国码二区| 久久女同性恋中文字幕| 欧美日韩一区二区三区在线看| 精品婷婷伊人一区三区三| 欧美一区二区私人影院日本| 日韩一区二区免费在线电影| 久久午夜羞羞影院免费观看| 国产人久久人人人人爽| 亚洲免费观看高清完整| 日韩精品亚洲一区| 国产一区视频导航| 99久久久国产精品免费蜜臀| 欧美羞羞免费网站| 日韩免费观看2025年上映的电影| 久久久午夜精品理论片中文字幕| 国产精品久久午夜夜伦鲁鲁| 亚洲尤物在线视频观看| 青青草精品视频| 国产激情一区二区三区桃花岛亚洲 | 精品久久久三级丝袜| 国产精品欧美一区喷水| 亚洲第一电影网| 久久av中文字幕片| 成人黄色av网站在线| 欧美图片一区二区三区| 精品国产一区二区三区av性色| 国产精品网曝门| 亚洲va欧美va人人爽午夜 | 亚洲制服丝袜在线| 寂寞少妇一区二区三区|