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

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

?? clipboard.cpp

?? 獨特的讀寫工具,輸入文字后按"COPY"鍵,再把文字刪除,再按PASTE鍵,之前輸入的文字就會再次顯示
?? CPP
字號:
// CClipboard Class// ----------------// Written by David Terracino <davet@lycosemail.com>//// This code is released into the public domain, because// it's silly easy. If you want to use and expand it, go// ahead; fine by me. If you do expand this class's// functionality, please consider sending it back up to// the MFC Programmer's Sourcebook at www.codeguru.com.//// And as always, please give credit where credit is// due. Don't remove my name from the source.#include "stdafx.h"#include "Clipboard.h"////////////////////////////////////////////////////////////////////// GetText// - Retrieves text from the clipboard//////////////////////////////////////////////////////////////////////// Parameters://	lpszBuffer - pointer to a string where the text is to be put//	nBufSize   - allocated length of lpszBuffer//	hWnd       - window handle to be used by clipboard//// Return Values://	TRUE       - Text was successfully copied from clipboard//	FALSE      - No text on the clipboard//////////////////////////////////////////////////////////////////////BOOL CClipboard::GetText (LPSTR lpszBuffer, int nBufSize, HWND hWnd){	HGLOBAL hGlobal;		// Global memory handle	LPSTR lpszData;			// Pointer to clipboard data	unsigned long nSize;	// Size of clipboard data	// First, open the clipboard. OpenClipboard() takes one	// parameter, the handle of the window that will temporarily	// be it's owner. If NULL is passed, the current process	// is assumed.	OpenClipboard(hWnd);	// Request a pointer to the text on the clipboard.	hGlobal = GetClipboardData(CF_TEXT);	// If there was no text on the clipboard, we have	// been returned a NULL handle.		if (hGlobal == NULL) return FALSE;	// Now we have a global memory handle to the text	// stored on the clipboard. We have to lock this global	// handle so that we have access to it.	lpszData = (LPSTR)GlobalLock(hGlobal);	// Now get the size of the text on the clipboard.	nSize = GlobalSize(hGlobal);	// Make sure the text on the clipboard is not longer	// that the buffer that was allocated for it. If it was	// snip the text on the clipboard so that it fits.	if(nSize >= (UINT)nBufSize) nSize = nBufSize - 1;	// Now, copy the text into the return buffer. At the	// end, we need to add a NULL string terminator.	for (UINT i = 0; i < nSize; ++i)		*(lpszBuffer + i) = *(lpszData + i);	*(lpszBuffer + i) = 0;	// Now, simply unlock the global memory pointer	// and close the clipboard.	GlobalUnlock(hGlobal);	CloseClipboard();	return TRUE;}////////////////////////////////////////////////////////////////////// GetTextLength// - Retrieves length of text on the clipboard//////////////////////////////////////////////////////////////////////// Parameters://	pnSize     - pointer to unsigned long that will receive//               the length of the text on the clipboard.//               NOTE: Does not include NULL terminator.//	hWnd       - window handle to be used by clipboard//// Return Values://	TRUE       - Text length was successfully returned.//	FALSE      - No text on the clipboard//////////////////////////////////////////////////////////////////////BOOL CClipboard::GetTextLength (unsigned long *pnSize, HWND hWnd){	HGLOBAL hGlobal;		// Global memory handle	unsigned long nSize;	// Size of clipboard data	LPSTR lpszData;			// Pointer to clipboard data	// First, open the clipboard. OpenClipboard() takes one	// parameter, the handle of the window that will temporarily	// be it's owner. If NULL is passed, the current process	// is assumed.	OpenClipboard(hWnd);	// Request a pointer to the text on the clipboard.	hGlobal = GetClipboardData(CF_TEXT);	// If there was no text on the clipboard, we have	// been returned a NULL handle.		if (hGlobal == NULL) return FALSE;	// Now we have a global memory handle to the text	// stored on the clipboard. We have to lock this global	// handle so that we have access to it.	lpszData = (LPSTR)GlobalLock(hGlobal);	// Now get the size of the text on the clipboard.	nSize = GlobalSize(hGlobal);	// Now, simply unlock the global memory pointer	// and close the clipboard.	GlobalUnlock(hGlobal);	CloseClipboard();	// Finally, save the length of the string we found	// into the pnSize pointer and return.	*pnSize = nSize;	return TRUE;}////////////////////////////////////////////////////////////////////// SetText// - Places text on the clipboard//////////////////////////////////////////////////////////////////////// Parameters://	lpszBuffer - pointer to a string where the text is to be put//	hWnd       - window handle to be used by clipboard//// Return Values://	TRUE       - Text was successfully copied from clipboard//	FALSE      - No text on the clipboard//////////////////////////////////////////////////////////////////////int CClipboard::SetText (LPSTR lpszBuffer, HWND hWnd){	HGLOBAL hGlobal;		// Global memory handle	LPSTR lpszData;			// Pointer to clipboard data	unsigned long nSize;	// Size of clipboard data	// First, open the clipboard. OpenClipboard() takes one	// parameter, the handle of the window that will temporarily	// be it's owner. If NULL is passed, the current process	// is assumed. After opening, empty the clipboard so we	// can put our text on it.	OpenClipboard(hWnd);	EmptyClipboard();	// Get the size of the string in the buffer that was	// passed into the function, so we know how much global	// memory to allocate for the string.	nSize = lstrlen(lpszBuffer);	// Allocate the memory for the string.	hGlobal = GlobalAlloc(GMEM_ZEROINIT, nSize+1);		// If we got any error during the memory allocation,	// we have been returned a NULL handle.	if (hGlobal == NULL) return FALSE;	// Now we have a global memory handle to the text	// stored on the clipboard. We have to lock this global	// handle so that we have access to it.	lpszData = (LPSTR)GlobalLock(hGlobal);	// Now, copy the text from the buffer into the allocated	// global memory pointer.	for (UINT i = 0; i < nSize + 1; ++i)		*(lpszData + i) = *(lpszBuffer + i);	// Now, simply unlock the global memory pointer,	// set the clipboard data type and pointer,	// and close the clipboard.	GlobalUnlock(hGlobal);	SetClipboardData(CF_TEXT, hGlobal);	CloseClipboard();	return TRUE;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产成人8x视频一区二区| 国产精品久久久99| 美女视频黄 久久| 欧美一区日韩一区| 免费高清在线视频一区·| 日韩欧美成人一区二区| 久88久久88久久久| 国产丝袜欧美中文另类| 成人av综合一区| 亚洲精品免费在线播放| 欧美日韩免费一区二区三区| 亚洲成人在线免费| 日韩欧美激情四射| 丰满白嫩尤物一区二区| 亚洲另类在线制服丝袜| 在线观看91精品国产麻豆| 国产一区二区日韩精品| 一色屋精品亚洲香蕉网站| 欧美亚州韩日在线看免费版国语版| 亚洲国产美女搞黄色| 精品国产一区二区三区久久久蜜月 | 丝袜美腿亚洲综合| 日韩精品专区在线影院重磅| 国产伦精品一区二区三区视频青涩| 中日韩免费视频中文字幕| 91国模大尺度私拍在线视频| 免费看欧美女人艹b| 国产精品美女久久久久久久| 欧美日韩国产免费一区二区| 国产福利91精品一区二区三区| 中文字幕在线不卡国产视频| 欧美一区二区在线免费观看| 国产69精品一区二区亚洲孕妇| 亚洲欧美激情插 | 日韩三级在线免费观看| 国产一区二区久久| 一区二区三区不卡视频| 国产午夜精品久久久久久免费视| 欧美三区免费完整视频在线观看| 国产一区二区三区在线观看免费视频| 亚洲精品v日韩精品| 久久综合久久综合亚洲| 欧美午夜电影网| 国产91对白在线观看九色| 日日夜夜精品视频天天综合网| 国产精品乱人伦一区二区| 日韩欧美久久久| 欧美三级三级三级| 色综合婷婷久久| 国产精品一区二区三区99| 天天射综合影视| 亚洲欧美影音先锋| 欧美精品一区二区蜜臀亚洲| 欧美体内she精高潮| 国产精品伊人色| 午夜日韩在线电影| 国产欧美日韩另类视频免费观看| 欧美性大战久久久久久久蜜臀| 国产伦精一区二区三区| 一区二区三区.www| 69堂精品视频| 99re热这里只有精品免费视频| 日本亚洲欧美天堂免费| 中文字幕在线免费不卡| 日韩精品在线一区| 欧美午夜电影一区| 波波电影院一区二区三区| 麻豆精品一区二区综合av| 伊人婷婷欧美激情| 国产欧美精品区一区二区三区 | 欧美激情一区二区三区四区| 在线成人午夜影院| 色婷婷久久久亚洲一区二区三区 | av日韩在线网站| 国产很黄免费观看久久| 视频一区二区三区在线| 中文字幕欧美一| 中文字幕av一区二区三区免费看 | 欧美日韩一卡二卡三卡| 99精品桃花视频在线观看| 麻豆国产91在线播放| 亚洲va欧美va人人爽| 一区二区三区av电影| 国产精品免费久久| 日韩精品一区二区在线| 日韩欧美在线123| 欧美猛男gaygay网站| 欧美三级日韩在线| 欧美中文字幕一区| 在线观看成人小视频| 成人白浆超碰人人人人| 国产91色综合久久免费分享| 精品在线播放午夜| 麻豆91免费看| 美女一区二区三区在线观看| 一区二区在线观看视频| 一区二区三区日韩精品视频| 亚洲欧美国产三级| 亚洲欧美日韩成人高清在线一区| 中文字幕中文乱码欧美一区二区| 国产女主播一区| 中文字幕巨乱亚洲| 中文字幕一区二区三区精华液| 国产精品免费aⅴ片在线观看| 国产日产欧美一区| 中文字幕一区二区三区不卡 | 亚洲欧洲国产日本综合| 亚洲精品写真福利| 亚洲欧美区自拍先锋| 午夜精品在线视频一区| 人人超碰91尤物精品国产| 男人的j进女人的j一区| 久久精品国产精品亚洲精品| 男女性色大片免费观看一区二区 | 欧美亚洲国产一区二区三区va| 欧美视频在线不卡| 欧美剧情片在线观看| 久久夜色精品一区| 亚洲天堂福利av| 亚洲一卡二卡三卡四卡无卡久久| 性久久久久久久| 精品一区二区三区久久久| 国产精品一卡二卡| 日本精品视频一区二区三区| 欧美日韩国产精选| 26uuu国产日韩综合| 国产精品欧美一区二区三区| 亚洲精品免费电影| 亚洲美女少妇撒尿| 奇米影视一区二区三区小说| 国产不卡在线播放| 精品视频123区在线观看| 日韩情涩欧美日韩视频| 国产精品无圣光一区二区| 一区二区三区国产精华| 理论电影国产精品| 9色porny自拍视频一区二区| 欧美狂野另类xxxxoooo| 亚洲国产激情av| 亚洲成人av在线电影| 国产不卡在线播放| 一本到不卡精品视频在线观看| 777色狠狠一区二区三区| 久久久久久一二三区| 亚洲区小说区图片区qvod| 男女视频一区二区| 色先锋资源久久综合| 日韩美一区二区三区| 伊人婷婷欧美激情| 国产精品一区免费视频| 欧美日韩综合一区| 国产精品国产成人国产三级 | 国产精品美女www爽爽爽| 九九九精品视频| 欧美色视频在线观看| 国产精品久久久久久福利一牛影视 | 国产尤物一区二区| 色噜噜久久综合| 久久亚洲一级片| 亚洲1区2区3区4区| www.一区二区| 久久伊人蜜桃av一区二区| 亚洲h精品动漫在线观看| 99re这里只有精品6| 精品国产免费一区二区三区香蕉 | 久久这里只有精品6| 亚瑟在线精品视频| 色视频一区二区| 国产精品成人免费在线| 国内精品不卡在线| 欧美一二三区在线观看| 亚洲同性同志一二三专区| aaa欧美日韩| 国产欧美一区二区精品仙草咪| 麻豆精品一区二区| 在线播放中文字幕一区| 亚洲www啪成人一区二区麻豆| 色婷婷综合久久久中文一区二区| 卡一卡二国产精品 | 91在线视频免费91| 精品免费99久久| 欧美午夜一区二区| 欧美最新大片在线看| 欧美日韩精品专区| 亚洲综合在线视频| 色婷婷综合久久久久中文| 国产精品久久久久久久久免费桃花| 国产老女人精品毛片久久| 精品久久久三级丝袜| 日日摸夜夜添夜夜添国产精品 | 欧美中文一区二区三区| 一区二区三区四区精品在线视频| 成人永久看片免费视频天堂| 国产亚洲欧美日韩俺去了| 老司机精品视频线观看86| 在线观看成人小视频| 免费成人在线网站| 久久夜色精品国产欧美乱极品| 国产精品中文欧美| 中文字幕的久久|