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

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

?? lion-tutorial04.htm

?? 內(nèi)有一些代碼
?? HTM
?? 第 1 頁 / 共 2 頁
字號(hào):
    <br>
    <b>&nbsp;&nbsp;&nbsp; mov&nbsp;&nbsp; hwnd,eax</b> <br>
    <b>&nbsp;&nbsp;&nbsp; invoke ShowWindow, hwnd,SW_SHOWNORMAL</b> <br>
    <b>&nbsp;&nbsp;&nbsp; invoke UpdateWindow, hwnd</b> <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .WHILE TRUE</b> <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    invoke GetMessage, ADDR msg,NULL,0,0</b> <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    .BREAK .IF (!eax)</b> <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    invoke TranslateMessage, ADDR msg</b> <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    invoke DispatchMessage, ADDR msg</b> <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .ENDW</b> <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mov&nbsp;&nbsp;&nbsp;&nbsp; 
    eax,msg.wParam</b> <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ret</b> <br>
    <b>WinMain endp</b> 
  <p><b>WndProc proc hWnd:HWND, uMsg:UINT, wParam:WPARAM, lParam:LPARAM</b> <br>
    <b>&nbsp;&nbsp;&nbsp; LOCAL hdc:HDC</b> <br>
    <b>&nbsp;&nbsp;&nbsp; LOCAL ps:PAINTSTRUCT</b> <br>
    <b>&nbsp;&nbsp;&nbsp; LOCAL rect:RECT</b> <br>
    <b>&nbsp;&nbsp;&nbsp; .IF uMsg==WM_DESTROY</b> <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; invoke PostQuitMessage,NULL</b> 
    <br>
    <b>&nbsp;&nbsp;&nbsp; .ELSEIF uMsg==WM_PAINT</b> <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; invoke BeginPaint,hWnd, ADDR 
    ps</b> <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mov&nbsp;&nbsp;&nbsp; hdc,eax</b> 
    <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; invoke GetClientRect,hWnd, ADDR 
    rect</b> <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; invoke DrawText, hdc,ADDR OurText,-1, 
    ADDR rect, \</b> <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    DT_SINGLELINE or DT_CENTER or DT_VCENTER</b> <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; invoke EndPaint,hWnd, ADDR ps</b> 
    <br>
    <b>&nbsp;&nbsp;&nbsp; .ELSE</b> <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; invoke DefWindowProc,hWnd,uMsg,wParam,lParam</b> 
    <br>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ret</b> <br>
    <b>&nbsp;&nbsp;&nbsp; .ENDIF</b> <br>
    <b>&nbsp;&nbsp;&nbsp; xor&nbsp;&nbsp; eax, eax</b> <br>
    <b>&nbsp;&nbsp;&nbsp; ret</b> <br>
    <b>WndProc endp</b> <br>
    <b>end start</b>
</blockquote>
<h3> Analysis:</h3>
The majority of the code is the same as the example in tutorial 3. I'll explain 
only the important changes. 
<p><b>&nbsp;&nbsp;&nbsp; LOCAL hdc:HDC</b> <br>
  <b>&nbsp;&nbsp;&nbsp; LOCAL ps:PAINTSTRUCT</b> <br>
  <b>&nbsp;&nbsp;&nbsp; LOCAL rect:RECT</b> 
<p>These are local variables that are used by GDI functions in our WM_PAINT section. 
  hdc is used to store the handle to device context returned from BeginPaint call. 
  ps is a PAINTSTRUCT structure. Normally you don't use the values in ps. It's 
  passed to BeginPaint function and Windows fills it with appropriate values. 
  You then pass ps to EndPaint function when you finish painting the client area. 
  rect is a RECT structure defined as follows: <br>
  &nbsp; 
<blockquote><b>RECT Struct</b> <br>
  <b>&nbsp;&nbsp;&nbsp; left&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  LONG ?</b> <br>
  <b>&nbsp;&nbsp;&nbsp; top&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  LONG ?</b> <br>
  <b>&nbsp;&nbsp;&nbsp; right&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LONG ?</b> 
  <br>
  <b>&nbsp;&nbsp;&nbsp; bottom&nbsp;&nbsp;&nbsp; LONG ?</b> <br>
  <b>RECT ends</b></blockquote>
Left and top are the coordinates of the upper left corner of a rectangle Right 
and bottom are the coordinates of the lower right corner. One thing to remember: 
The origin of the x-y axes is at the upper left corner of the client area. So 
the point y=10 is BELOW the point y=0. 
<p><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; invoke BeginPaint,hWnd, ADDR 
  ps</b> <br>
  <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mov&nbsp;&nbsp;&nbsp; hdc,eax</b> 
  <br>
  <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; invoke GetClientRect,hWnd, ADDR 
  rect</b> <br>
  <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; invoke DrawText, hdc,ADDR OurText,-1, 
  ADDR rect, \</b> <br>
  <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  DT_SINGLELINE or DT_CENTER or DT_VCENTER</b> <br>
  <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; invoke EndPaint,hWnd, ADDR ps</b> 
<p>In response to WM_PAINT message, you call BeginPaint with handle to the window 
  you want to paint and an uninitialized PAINTSTRUCT structure as parameters. 
  After successful call, eax contains the handle to device context. Next you call 
  GetClientRect to retrieve the dimension of the client area. The dimension is 
  returned in rect variable which you pass to DrawText as one of its parameters. 
  DrawText's syntax is: 
<p><b>DrawText proto hdc:HDC, lpString:DWORD, nCount:DWORD, lpRect:DWORD, uFormat:DWORD</b> 
<p>DrawText is a high-level text output API function. It handles some gory details 
  such as word wrap, centering etc. so you could concentrate on the string you 
  want to paint. Its low-level brother, TextOut, will be examined in the next 
  tutorial. DrawText formats a text string to fit within the bounds of a rectangle. 
  It uses the currently selected font,color and background (in the device context) 
  to draw the text.Lines are wrapped to fit within the bounds of the rectangle. 
  It returns the height of the output text in device units, in our case, pixels. 
  Let's see its parameters: 
<ul>
  <b><u>hdc</u></b>&nbsp; handle to device context <br>
  <b><u>lpString</u></b>&nbsp; The pointer to the string you want to draw in the 
  rectangle. The string must be null-terminated else you would have to specify 
  its length in the next parameter, nCount. <br>
  <b><u>nCount</u></b>&nbsp; The number of characters to output. If the string 
  is null-terminated, nCount must be -1. Otherwise nCount must contain the number 
  of characters in the string you want to draw. <br>
  <b><u>lpRect</u></b>&nbsp; The pointer to the rectangle (a structure of type 
  RECT) you want to draw the string in. Note that this rectangle is also a clipping 
  rectangle, that is, you could not draw the string outside this rectangle. <br>
  <b><u>uFormat</u></b> The value that specifies how the string is displayed in 
  the rectangle. We use three values combined by "or" operator: 
  <ul>
    <li> <b>DT_SINGLELINE</b>&nbsp; specifies a single line of text</li>
    <li> <b>DT_CENTER</b>&nbsp; centers the text horizontally.</li>
    <li> <b>DT_VCENTER</b> centers the text vertically. Must be used with DT_SINGLELINE.</li>
  </ul>
</ul>
After you finish painting the client area, you must call EndPaint function to 
release the handle to device context. <br>
That's it. We can summarize the salient points here: 
<ul>
  <li> You call BeginPaint-EndPaint pair in response to WM_PAINT message.</li>
  <li> Do anything you like with the client area between the calls to BeginPaint 
    and EndPaint.</li>
  <li> If you want to repaint your client area in response to other messages, 
    you have two choices:</li>
  <ul>
    <li> Use GetDC-ReleaseDC pair and do your painting between these calls</li>
    <li> Call InvalidateRect or UpdateWindow&nbsp; to invalidate the entire client 
      area, forcing Windows to put WM_PAINT message in the message queue of your 
      window and do your painting in WM_PAINT section<strong> </strong></li>
  </ul>
</ul>
<hr size="1">
<div align="center"> This article come from Iczelion's asm page, Welcom to <a href="http://asm.yeah.net">http://asm.yeah.net</a></div>

</body>
</html>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av男人天堂一区| 五月激情综合色| 亚洲高清免费观看高清完整版在线观看| 亚洲一区二区在线免费观看视频| 亚洲国产日产av| 精品中文字幕一区二区小辣椒| 国精产品一区一区三区mba视频| 成人不卡免费av| 欧美猛男gaygay网站| 精品福利av导航| 亚洲欧洲国产日本综合| 日韩成人一区二区三区在线观看| 国产麻豆视频精品| 精品视频在线免费观看| 久久久另类综合| 亚洲国产一二三| 国产91精品一区二区麻豆网站| 91高清视频在线| 国产日韩av一区二区| 亚洲动漫第一页| 粉嫩嫩av羞羞动漫久久久| 欧美日韩第一区日日骚| 中文字幕欧美三区| 日本不卡免费在线视频| 99热这里都是精品| 欧美成人性战久久| 亚洲一本大道在线| 成人免费高清在线| 日韩免费观看高清完整版在线观看| 亚洲三级电影网站| 国产高清成人在线| 欧美一区二区三区免费大片| 亚洲三级免费观看| 国产成人av福利| 日韩一区二区三区免费观看| 亚洲欧美福利一区二区| 国产精品99久久不卡二区| 欧美电影影音先锋| 亚洲精品欧美在线| 成人动漫在线一区| 久久精品欧美一区二区三区麻豆| 日韩高清不卡一区二区| 一本一道久久a久久精品综合蜜臀| 欧美精品一区二区三| 亚洲aaa精品| 一本到不卡精品视频在线观看| 久久精品夜色噜噜亚洲aⅴ| 免费人成在线不卡| 欧美日韩精品一二三区| 亚洲乱码国产乱码精品精可以看| 国产精品99久久久久久似苏梦涵 | 国产精品私人影院| 美女视频黄频大全不卡视频在线播放| 色噜噜狠狠色综合中国| 中文字幕一区二区三| 国产suv精品一区二区883| 日韩精品一区二区三区在线观看| 日韩极品在线观看| 欧美日韩电影在线播放| 亚洲一级二级三级在线免费观看| 色哟哟在线观看一区二区三区| 国产精品天干天干在观线| 国产激情精品久久久第一区二区 | 国产精品一区二区久久不卡| 精品免费视频一区二区| 蜜臀久久99精品久久久久宅男| 欧美精品日韩精品| 亚洲18色成人| 678五月天丁香亚洲综合网| 亚洲午夜免费福利视频| 欧美日韩一区二区三区在线看| 亚洲三级免费电影| 在线观看免费成人| 亚洲午夜国产一区99re久久| 欧美午夜不卡视频| 亚洲国产日韩综合久久精品| 欧美日韩aaa| 日韩中文字幕区一区有砖一区 | 日日摸夜夜添夜夜添精品视频| 欧美日韩亚洲丝袜制服| 日韩精品国产精品| 日韩欧美亚洲另类制服综合在线| 精品无人区卡一卡二卡三乱码免费卡| 日韩欧美国产一区二区在线播放| 精品一二三四在线| 国产精品网站导航| 91国内精品野花午夜精品| 亚洲一区二区精品久久av| 欧美日韩在线播放一区| 日本美女视频一区二区| 337p日本欧洲亚洲大胆色噜噜| 国产精品69毛片高清亚洲| 国产精品夫妻自拍| 在线观看免费一区| 麻豆国产精品777777在线| 久久九九99视频| 9l国产精品久久久久麻豆| 亚洲一区二区av在线| 欧美一级生活片| 国产精品中文有码| 亚洲综合一区二区三区| 欧美高清www午色夜在线视频| 久久99国产精品麻豆| 国产精品久久久久久久久搜平片 | 亚洲最新视频在线观看| 欧美日韩黄色影视| 激情久久五月天| 中文字幕日本不卡| 欧美肥妇bbw| 成人晚上爱看视频| 亚洲一区日韩精品中文字幕| 精品粉嫩超白一线天av| 99久久婷婷国产综合精品| 亚洲第一在线综合网站| 久久综合一区二区| 91精彩视频在线| 久久精品国产77777蜜臀| 国产精品国模大尺度视频| 在线播放中文一区| 丁香啪啪综合成人亚洲小说| 亚洲国产视频一区| 欧美极品美女视频| 欧美日产在线观看| 成人深夜福利app| 三级精品在线观看| 中文字幕一区二区三区视频| 日韩欧美国产不卡| 色欧美88888久久久久久影院| 黄一区二区三区| 亚洲综合av网| 国产色产综合色产在线视频| 欧美亚洲自拍偷拍| 国产成人综合在线| 天天爽夜夜爽夜夜爽精品视频| 国产欧美日韩精品在线| 欧美一级精品在线| 日本高清不卡视频| 高清不卡在线观看| 另类欧美日韩国产在线| 亚洲综合另类小说| 91蜜桃传媒精品久久久一区二区| 欧美亚洲一区二区在线| 日韩电影免费一区| 欧美一区二区精品久久911| 播五月开心婷婷综合| 美女爽到高潮91| 亚洲丶国产丶欧美一区二区三区| 国产精品乱码妇女bbbb| 欧美精品一区二区三区蜜臀| 欧美精品自拍偷拍动漫精品| av在线一区二区三区| 色网站国产精品| 国产女人水真多18毛片18精品视频| 欧美日韩一区二区三区四区五区| 精品一区二区在线视频| 亚洲无线码一区二区三区| 亚洲一二三四久久| 五月综合激情婷婷六月色窝| 亚洲成人自拍一区| 日本成人在线一区| 蜜桃精品在线观看| 精彩视频一区二区| 国产精品12区| 99久久99久久综合| 91蝌蚪porny| 欧美色网站导航| 7777女厕盗摄久久久| 日韩一区二区三免费高清| 日韩精品一区二区三区四区视频 | 色综合久久天天综合网| 91福利社在线观看| 欧美精品在线一区二区三区| 日韩一区二区精品在线观看| 欧美成人综合网站| 久久久久久久综合色一本| 欧美激情一区二区三区在线| 成人欧美一区二区三区在线播放| 亚洲免费观看高清在线观看| 亚洲大片免费看| 欧美aaaaa成人免费观看视频| 激情文学综合插| av在线不卡电影| 欧美日韩国产欧美日美国产精品| 欧美一二三区在线观看| 国产日韩成人精品| 亚洲精品免费在线播放| 日韩精品一二三四| 国产麻豆成人精品| 91麻豆福利精品推荐| 91精品国产综合久久福利软件| 久久青草欧美一区二区三区| 亚洲日本在线a| 亚洲v中文字幕| 国产美女在线精品| 91蜜桃婷婷狠狠久久综合9色| 欧美一区二区在线观看| 欧美极品aⅴ影院| 午夜影视日本亚洲欧洲精品| 国产原创一区二区三区| 色偷偷成人一区二区三区91|