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

📄 clipbord.c

📁 rtCell 实时微内核-具有下列功能: 1. 完全抢占的实时微内核结构
💻 C
字号:
/*
 *******************************************************************************
 *                      The real-time kernel "rtCell"                          *
 *              Copyright 2005 taowentao, allrights reserved.                  *
 * File : Clipboard.C                                                          *
 * By   : taowentao     2006-09-02  2007-05-20                                 *
 *******************************************************************************
 */

#if !defined(CLIPBOARD_H)
#include "giCell\Wins\include\Clipbord.h"
#endif  

/*
 *******************************************************************************
 *                                                                             *
 *******************************************************************************
 */

static BYTE *pClipBoardBuf = NULL;
static CWORD ClipBoardSize = 0;
static CWORD CurrentSize = 0;

/*
 *******************************************************************************
 *                                                                             *
 *******************************************************************************
 */

void InitClipBoard(const CWORD size)
{
    if (pClipBoardBuf == NULL) {
        pClipBoardBuf = GUIAlloc(size);
        ClipBoardSize = size;
    }
}

void AddToClipBoard(const BYTE *pBuf, const CWORD size)
{
    CWORD i;

    for (i = 0; (i < size) && (i < ClipBoardSize); i++) {
        pClipBoardBuf[i] = pBuf[i];
    }

    CurrentSize = i;
} 

CWORD GetClipBoardContentSize(void)
{
    return (CurrentSize);
}

const BYTE * GetClipBoardBuf(void)
{
    return (pClipBoardBuf);
}

/*
 *******************************************************************************
 *                                                                             *
 *******************************************************************************
 */

⌨️ 快捷键说明

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