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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? lion-tutorial33.htm

?? 內(nèi)有一些代碼
?? HTM
?? 第 1 頁 / 共 5 頁
字號(hào):
  you have at most three choices: </font></p><ol>  <li><font face="Tahoma" size="-1">Apply to all text in the control (<font color="#006666"><b>SCF_ALL</b></font>)</font></li>  <li><font face="Tahoma" size="-1">Apply to the text currently in selection (<font color="#006666"><b>SCF_SELECTION</b></font>)</font></li>  <li><font face="Tahoma" size="-1">Apply to the whole word currently in selection     (<font color="#006666"><b>SCF_WORD</b></font> or <font color="#006666"><b>SCF_SELECTION</b></font>)</font></li></ol><p><font face="Tahoma" size="-1">The first and the second choices are straightforward.   The last choice requires a little explanation. If the current selection only   covers one or more of the characters in the word but not the whole word, specifying   the flag <font color="#006666"><b>SCF_WORD</b></font>+<font color="#006666"><b>SCF_SELECTION</b></font>   applies the text formatting to the whole word. Even if there is no current selection,   ie, only the caret is positioned in the word, the third choice also applies   the text formatting to the whole word.</font></p><p><font face="Tahoma" size="-1">To use <font color="#006666"><b>EM_SETCHARFORMAT</b></font>,   you need to fill several members of <font color="#006666"><b>CHARFORMAT</b></font>   (or <font color="#006666"><b>CHARFORMAT2</b></font>) structure. For example,   if we want to set the text color, we will fill the <font color="#006666"><b>CHARFORMAT</b></font>   structure as follows:</font></p><pre><font face="Tahoma"><b><font color="#000066">.data?	cf CHARFORMAT &lt;&gt;.....code	mov cf.cbSize,sizeof cf	mov cf.dwMask,CFM_COLOR	mov cf.crTextColor,0FF0000h	invoke SendMessage,hwndRichEdit,EM_SETCHARFORMAT,SCF_ALL,addr cf</font></b></font></pre><p><font face="Tahoma" size="-1">The above code snippet sets the text color of   the richedit control to pure blue. Note that if there is no text in the richedit   control when <font color="#006666"><b>EM_SETCHARFORMAT</b></font> is issued,   the text entered into the richedit control following the message will use the   text formatting specified by the<font color="#006666"><b> EM_SETCHARFORMAT</b></font>   message.<br>  </font></p><h3><font face="Times New Roman, Times, serif" color="#000099">Setting the text/saving   the text</font></h3><p><font face="Tahoma" size="-1">For those of you who are used to edit control,   you'll surely be familiar with <font color="#006666"><b>WM_GETTEXT</b></font>/<font color="#006666"><b>WM_SETTEXT</b></font>   as the means to set the text/get the text to/from the control. This method still   works with richedit control but may not be efficient if the file is large. Edit   control limits the text that can be entered into it to 64K but richedit control   can accept text much larger than that. It would be very cumbersome to allocate   a very large block of memory (such as 10 MB or so) to receive the text from   <font color="#006666"><b>WM_GETTEXT</b></font>. Richedit control offers a new   approach to this method, ie. text streaming.</font></p><p><font face="Tahoma" size="-1">To put it simply, you provide the address of   a callback function to the richedit control. And richedit control will call   that callback, passing the address of the buffer to it, when it's ready. The   callback will fill the buffer with the data it wants to send to the control   or read the data from the buffer and then waits for the next call until the   operation is finished. This paradigm is used for both streaming in (setting   the text) and streaming out (getting the text out of the control). You'll see   that this method is more efficient: the buffer is provided by the richedit control   itself so the data are divided into chunks. The operations involve two messages:<font color="#006666"><b>   EM_STREAMIN</b></font> and <font color="#006666"><b>EM_STREAMOUT</b></font></font></p><p><font face="Tahoma" size="-1">Both <font color="#006666"><b>EM_STREAMIN </b></font>and   <font color="#006666"> <b>EM_STREAMOUT</b></font> use the same syntax:</font></p><p><font face="Tahoma" size="-1"> <font color="#0000FF"><b>wParam</b></font> ==   formatting options.</font></p><table cellpadding="3" align="center" border="1">  <tr bgcolor="#FFFFCC">     <td><b><font face="MS Sans Serif" size="-1">SF_RTF</font></b></td>    <td><font face="MS Sans Serif" size="-1">The data is in the rich-text format       (RTF) </font></td>  </tr>  <tr bgcolor="#FFFFCC">     <td><b><font face="MS Sans Serif" size="-1">SF_TEXT</font></b></td>    <td><font face="MS Sans Serif" size="-1">The data is in the plain text format</font></td>  </tr>  <tr bgcolor="#FFFFCC">     <td><b><font face="MS Sans Serif" size="-1">SFF_PLAINRTF</font></b></td>    <td><font face="MS Sans Serif" size="-1">Only the keywords common to all languages       are streamed in.</font></td>  </tr>  <tr bgcolor="#FFFFCC">     <td><b><font face="MS Sans Serif" size="-1">SFF_SELECTION</font></b></td>    <td><font face="MS Sans Serif" size="-1">If specified, the target of the operation       is the text currently in selection. If you stream the text in, the text       replaces the current selection. If you stream the text out, only the text       currently in selection is streamed out. If this flag is not specified, the       operation affects the whole text in the control.</font></td>  </tr>  <tr bgcolor="#FFFFCC">     <td><b><font face="MS Sans Serif" size="-1">SF_UNICODE</font></b></td>    <td><font face="MS Sans Serif" size="-1">(Available on RichEdit 2.0 or later)       Specify the unicode text.</font></td>  </tr></table><p><font face="Tahoma" size="-1"> <font color="#0000FF"><b>lParam</b></font> ==   point to an <font color="#006666"><b>EDITSTREAM</b></font> structure which has   the following definition:</font><font face="Tahoma" size="-1"></font></p><pre><font face="Tahoma"> <font color="#006666"><b>EDITSTREAM STRUCT 	dwCookie DWORD    ? 	dwError DWORD ? 	pfnCallback DWORD ? EDITSTREAM ENDS</b></font></font><font face="Tahoma" size="-1"></font></pre><table cellpadding="3" align="center" border="1">  <tr bgcolor="#FFFFCC">     <td><b><font face="MS Sans Serif" size="-1">dwCookie</font></b></td>    <td><font face="MS Sans Serif" size="-1">application-defined value that will       be passed to the callback function speficied in <font color="#000066"><b>pfnCallback</b></font>       member below. We normally pass some important value to the callback function       such as the file handle to use in the stream-in/out procedure.</font></td>  </tr>  <tr bgcolor="#FFFFCC">     <td><b><font face="MS Sans Serif" size="-1">dwError</font></b></td>    <td><font face="MS Sans Serif" size="-1">Indicates the results of the stream-in       (read) or stream-out (write) operation. A value of zero indicates no error.       A nonzero value can be the return value of the EditStreamCallback function       or a code indicating that the control encountered an error. </font></td>  </tr>  <tr bgcolor="#FFFFCC">     <td><b><font face="MS Sans Serif" size="-1">pfnCallback</font></b></td>    <td><font face="MS Sans Serif" size="-1">Pointer to an EditStreamCallback       function, which is an application-defined function that the control calls       to transfer data. The control calls the callback function repeatedly, transferring       a portion of the data with each call</font></td>  </tr></table><p><font face="Tahoma" size="-1">The editstream callback function has the following   definition:</font></p><pre><font face="Tahoma">	<b><font color="#990099">EditStreamCallback</font> proto <font color="#CC00CC">dwCookie</font>:DWORD,<br>				 <font color="#CC00CC">pBuffer</font>:DWORD,				 <font color="#CC00CC">NumBytes</font>:DWORD,				 <font color="#CC00CC">pBytesTransferred</font>:DWORD</b></font></pre><p><font face="Tahoma" size="-1">You have to create a function with the above   prototype in your program. And then pass its address to <font color="#006666"><b>EM_STREAMIN</b></font>   or <font color="#006666"><b>EM_STREAMOUT</b></font> via <font color="#006666"><b>EDITSTREAM</b></font>   structure.</font></p><p><font face="Tahoma" size="-1">For stream-in operation (settting the text in   the richedit control)</font><font face="Tahoma">:</font></p><pre><font face="Tahoma">	<font color="#660066"><b><font color="#990099">dwCookie</font></b></font>: the application-defined value you pass to <font color="#006666"><b>EM_STREAMIN</b></font> via <font color="#006666"><b>EDITSTREAM</b></font> structure. We almost always 		pass the file handle of the file we want to set its content to the control here.</font><font face="Tahoma">	<font color="#990099"><b>pBuffer</b></font>: points to the buffer provided by the richedit control that will receive the text from your callback function.	<font color="#990099"><b>NumBytes</b></font>: the maximum number of bytes you can write the the buffer (pBuffer) in this call. You <font color="#000099"><b>MUST</b></font> always obey this limit, ie, you can send		less data than the value in NumBytes but must not send more data than this value. You can think of this value as the size		of the buffer in pBuffer.   <b><font color="#990099">pBytesTransferred</font></b>: points to a dword that you must set the value indicating the number of bytes you actually transferred to the buffer.		This value is usually identical to the value in <font color="#990099"><b>NumBytes</b></font>. The exception is when the data is to send is less than		the size of the buffer provided such as when the end of file is reached.</font></pre><p><font face="Tahoma"><font size="-1"> For stream-out operation (getting the   text out of the richedit control):</font></font><font face="Tahoma"><font size="-1"></font></font><font face="Tahoma"><font size="-1"></font></font></p><pre><font face="Tahoma">	<font color="#FFFFFF"><b><font color="#990099">dwCookie</font></b></font>: Same as the stream-in operation. We usually pass the file handle we want to write the data to in this parameter. 	<font color="#990099"><b>pBuffer</b></font>: points to the buffer provided by the richedit control that is filled with the data from the richedit control. 		To obtain its size, you must examine the value of <font color="#990099"><b>NumBytes</b></font>. <font color="#990099"><b>	NumBytes</b></font>: the size of the data in the buffer pointed to by pBuffer. 	<font color="#990099"><b>pBytesTransferred</b></font>: points to a dword that you must set the value indicating the number of bytes you actually read from the buffer.</font><font face="Tahoma"><font size="-1"></font></font></pre><p><font face="Tahoma" size="-1">The callback function returns 0 to indicate success   and richedit control will continue calling the callback function if there is   still data left to read/write. If some error occurs during the process and you   want to stop the operation, returns a non-zero value and the richedit control   will discard the data pointed to by pBuffer. The error/success value will be   filled in the <font color="#006666"><b>dwError</b></font> field of <font color="#990000"><b>EDITSTREAM</b></font>   so you can examine the error/success status of the stream operation after <font color="#006666"><b>SendMessage</b></font>   returns. </font><font face="Tahoma"><font size="-1"></font></font></p><h3><font face="Times New Roman, Times, serif" color="#0000CC">Example:</font></h3><p><font face="Tahoma" size="-1">The example below is a simple editor which you   can open an asm source code file, edit and save it. It uses RichEdit control   version 2.0 or above.</font></p><pre align="left"><b><font face="Tahoma">.386.model flat,stdcalloption casemap:noneinclude \masm32\include\windows.incinclude \masm32\include\user32.incinclude \masm32\include\comdlg32.incinclude \masm32\include\gdi32.incinclude \masm32\include\kernel32.incincludelib \masm32\lib\gdi32.libincludelib \masm32\lib\comdlg32.libincludelib \masm32\lib\user32.libincludelib \masm32\lib\kernel32.libWinMain proto :DWORD,:DWORD,:DWORD,:DWORD.constIDR_MAINMENU                   equ 101IDM_OPEN                      equ  40001IDM_SAVE                       equ 40002IDM_CLOSE                      equ 40003IDM_SAVEAS                     equ 40004IDM_EXIT                       equ 40005IDM_COPY                      equ  40006IDM_CUT                       equ  40007IDM_PASTE                      equ 40008IDM_DELETE                     equ 40009IDM_SELECTALL                  equ 40010IDM_OPTION 			equ 40011IDM_UNDO			equ 40012IDM_REDO			equ 40013IDD_OPTIONDLG                  equ 101IDC_BACKCOLORBOX               equ 1000IDC_TEXTCOLORBOX               equ 1001RichEditID 			equ 300.dataClassName db "<font color="#0000FF">IczEditClass</font>",0AppName  db "<font color="#0000FF">IczEdit version 1.0</font>",0RichEditDLL db "<font color="#0000FF">riched20.dll</font>",0RichEditClass db "<font color="#0000FF">RichEdit20A</font>",0NoRichEdit db "<font color="#0000FF">Cannot find riched20.dll</font>",0ASMFilterString 		db "<font color="#0000FF">ASM Source code (*.asm)</font>",0,"*<font color="#0000FF">.asm</font>",0				db "<font color="#0000FF">All Files (*.*)</font>",0,"<font color="#0000FF">*.*</font>",0,0OpenFileFail db "<font color="#0000FF">Cannot open the file</font>",0WannaSave db "<font color="#0000FF">The data in the control is modified. Want to save it?</font>",0FileOpened dd FALSEBackgroundColor dd 0FFFFFFh		<font color="#006666">; default to white</font>TextColor dd 0		<font color="#006666">; default to black</font>.data?hInstance dd ?hRichEdit dd ?hwndRichEdit dd ?FileName db 256 dup(?)AlternateFileName db 256 dup(?)CustomColors dd 16 dup(?).codestart:	invoke GetModuleHandle, NULL	mov    hInstance,eax<font color="#FF0033">	invoke LoadLibrary,addr RichEditDLL</font>	.if eax!=0		mov hRichEdit,eax		invoke WinMain, hInstance,0,0, SW_SHOWDEFAULT		invoke FreeLibrary,hRichEdit	.else		invoke MessageBox,0,addr NoRichEdit,addr AppName,MB_OK or MB_ICONERROR	.endif	invoke ExitProcess,eax	WinMain proc hInst:DWORD,hPrevInst:DWORD,CmdLine:DWORD,CmdShow:DWORD	LOCAL wc:WNDCLASSEX	LOCAL msg:MSG	LOCAL hwnd:DWORD	mov   wc.cbSize,SIZEOF WNDCLASSEX	mov   wc.style, CS_HREDRAW or CS_VREDRAW	mov   wc.lpfnWndProc, OFFSET WndProc	mov   wc.cbClsExtra,NULL	mov   wc.cbWndExtra,NULL	push  hInst	pop   wc.hInstance	mov   wc.hbrBackground,COLOR_WINDOW+1	mov   wc.lpszMenuName,IDR_MAINMENU	mov   wc.lpszClassName,OFFSET ClassName	invoke LoadIcon,NULL,IDI_APPLICATION	mov   wc.hIcon,eax	mov   wc.hIconSm,eax	invoke LoadCursor,NULL,IDC_ARROW	mov   wc.hCursor,eax	invoke RegisterClassEx, addr wc	INVOKE CreateWindowEx,NULL,ADDR ClassName,ADDR AppName,\           WS_OVERLAPPEDWINDOW,CW_USEDEFAULT,\           CW_USEDEFAULT,CW_USEDEFAULT,CW_USEDEFAULT,NULL,NULL,\           hInst,NULL	mov   hwnd,eax	invoke ShowWindow, hwnd,SW_SHOWNORMAL	invoke UpdateWindow, hwnd	.while TRUE		invoke GetMessage, ADDR msg,0,0,0		.break .if (!eax)		invoke TranslateMessage, ADDR msg		invoke DispatchMessage, ADDR msg	.endw	mov   eax,msg.wParam	retWinMain endp<font color="#003399">StreamInProc</font> proc hFile:DWORD,pBuffer:DWORD, NumBytes:DWORD, pBytesRead:DWORD	invoke ReadFile,hFile,pBuffer,NumBytes,pBytesRead,0	xor eax,1	ret<font color="#003399">StreamInProc</font> endp

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜久久久久久久久久一区二区| 亚洲老妇xxxxxx| 欧美精品自拍偷拍| 精品处破学生在线二十三| 国产欧美精品一区二区三区四区| 国产精品久久久久久亚洲伦 | 欧美激情在线看| 亚洲乱码国产乱码精品精的特点| 五月激情六月综合| 国产91精品入口| 欧美日韩亚洲不卡| 国产女主播一区| 午夜精品久久久久| eeuss鲁一区二区三区| 欧美一卡二卡三卡四卡| 国产精品久久久久久福利一牛影视 | 欧美日韩一区不卡| 国产欧美一区在线| 秋霞午夜鲁丝一区二区老狼| 99久久er热在这里只有精品66| 日韩欧美一二三| 亚洲欧美日韩中文字幕一区二区三区| 亚洲成人黄色小说| 岛国av在线一区| 精品区一区二区| 亚洲国产三级在线| 91影视在线播放| 国产喂奶挤奶一区二区三区| 人人狠狠综合久久亚洲| 色婷婷综合久久久| 国产精品久久久久久户外露出| 久久精品国产精品亚洲精品| 在线成人免费观看| 亚洲综合在线第一页| aaa国产一区| 中文在线一区二区| 精品制服美女久久| 精品欧美久久久| 日本视频免费一区| 欧美欧美午夜aⅴ在线观看| 17c精品麻豆一区二区免费| 国产成人无遮挡在线视频| 欧美成人猛片aaaaaaa| 美女在线视频一区| 日韩手机在线导航| 亚洲国产精品久久艾草纯爱| 欧洲激情一区二区| 亚洲成人午夜影院| 欧美日韩高清在线| 日韩精品电影一区亚洲| 欧美日韩一区二区三区在线看| 亚洲综合免费观看高清在线观看| 色国产精品一区在线观看| 一区二区高清在线| 在线观看日韩电影| 亚洲一区二区三区中文字幕 | 精品少妇一区二区三区| 午夜欧美2019年伦理| 欧美日韩精品高清| 日本v片在线高清不卡在线观看| 日韩一区二区在线观看视频播放| 污片在线观看一区二区| 欧美一区二区在线播放| 久久精品国产一区二区| 91精品视频网| 精品伊人久久久久7777人| 欧美成人欧美edvon| 国内精品免费在线观看| 欧美激情中文字幕| 色噜噜狠狠色综合欧洲selulu| 亚洲一区二区三区激情| 日韩欧美不卡一区| 高清免费成人av| 亚洲免费伊人电影| 欧美成人性战久久| 成人av在线看| 天天综合日日夜夜精品| 2023国产精品自拍| 色偷偷成人一区二区三区91 | 日韩成人午夜电影| 久久综合99re88久久爱| 成人av在线一区二区三区| 亚洲日本成人在线观看| 欧美群妇大交群的观看方式| 国产一区二区三区黄视频| 亚洲乱码中文字幕| 精品国产凹凸成av人网站| 99这里都是精品| 奇米色一区二区三区四区| 国产午夜一区二区三区| 欧美视频中文字幕| 国产精品1024久久| 午夜久久久久久电影| 国产亚洲1区2区3区| 欧美日韩成人综合| av日韩在线网站| 美女一区二区在线观看| 亚洲欧美怡红院| 精品91自产拍在线观看一区| 国产乱淫av一区二区三区| 日韩伦理av电影| 精品国产乱码久久久久久久久| 色一情一乱一乱一91av| 国产大片一区二区| 伦理电影国产精品| 亚洲一区二区精品3399| 国产精品你懂的| 精品毛片乱码1区2区3区| 99riav一区二区三区| 国产精品一卡二卡在线观看| 亚洲成人资源在线| 亚洲免费在线观看| 国产精品家庭影院| 久久久久久97三级| 精品久久久久av影院| 欧美精品少妇一区二区三区| 国产中文一区二区三区| 亚洲一区二区三区精品在线| 国产精品久久久久久久第一福利| 日韩欧美国产综合| 欧美一区欧美二区| 欧美日韩精品一二三区| 色综合亚洲欧洲| www.亚洲免费av| 国产精品99久| 日本亚洲视频在线| 午夜欧美2019年伦理| 欧美国产一区二区| 欧美国产在线观看| 国产精品天美传媒| 久久精品亚洲国产奇米99| 精品电影一区二区三区 | 91色视频在线| 97久久超碰精品国产| 99久久精品久久久久久清纯| 丁香激情综合五月| 成人黄色免费短视频| 99国产精品一区| 一本到三区不卡视频| 91精品福利视频| 欧美欧美欧美欧美| 日韩区在线观看| 精品国产91洋老外米糕| 久久久噜噜噜久噜久久综合| 国产人成一区二区三区影院| 中文字幕精品在线不卡| 亚洲少妇30p| 伊人性伊人情综合网| 亚洲一区二区三区在线看| 无吗不卡中文字幕| 午夜国产不卡在线观看视频| 香蕉加勒比综合久久| 蜜臀av性久久久久蜜臀av麻豆| 免费成人在线网站| 国产一区二区三区美女| 成人午夜精品在线| 在线亚洲一区二区| 日韩午夜在线播放| 欧美激情一区三区| 亚洲成av人片一区二区梦乃| 久久超碰97中文字幕| 国产成人aaa| 91九色最新地址| 日韩一区二区不卡| 国产精品私人自拍| 国产精品久线观看视频| 日本一区二区成人| 亚洲第一激情av| 国产激情偷乱视频一区二区三区| 99热这里都是精品| 欧美电影在线免费观看| 欧美激情艳妇裸体舞| 亚洲午夜激情网站| 黄色精品一二区| 色婷婷激情综合| 久久综合久久综合亚洲| 亚洲精品国产无天堂网2021| 久久超碰97中文字幕| 色美美综合视频| 日韩精品一区国产麻豆| 亚洲国产日韩综合久久精品| 波多野结衣欧美| 欧美精品一区二区三区蜜臀| 丝袜美腿亚洲一区二区图片| 91丨九色丨尤物| 国产精品大尺度| 粉嫩一区二区三区在线看| 精品国产a毛片| 理论电影国产精品| 日韩一卡二卡三卡| 丝袜亚洲另类丝袜在线| 在线亚洲一区观看| 亚洲久草在线视频| 91热门视频在线观看| 中文一区在线播放| 成人av网站在线观看免费| 久久久久久影视| 国产精品99久久久久| 久久久精品免费网站| 久久99精品一区二区三区三区|