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

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

?? tut27.html

?? WINDOWS程序員使用指南--匯編基礎
?? HTML
?? 第 1 頁 / 共 3 頁
字號:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta name="Author" content="Iczelion">
   <meta name="GENERATOR" content="Mozilla/4.7 [en] (Win98; I) [Netscape]">
   <title>Iczelion's Win32asm Tutorial 27: Tooltip Control</title>
</head>
<body text="#FFFFFF" bgcolor="#000080" link="#FFFF00" vlink="#8080FF" alink="#FF00FF">

<center>
<h1>
<font face="Tahoma"><font color="#FFFFCC">Tutorial 27: Tooltip Control</font></font></h1></center>
<font face="Tahoma">We will learn about the tooltip control: What it is
and how to create and use it. Download <a href="../../files/tut27.zip">the
example</a>.</font>
<h3>
<font face="Tahoma">Theory:</font></h3>
<font face="Tahoma">A tooltip is a small rectangular window that is displayed
when the mouse pointer hovers over some specific area. A tooltip window
contains some text that the programmer wants to be displayed. In this regard,
a tooltip servers the same role as the status window but it disappears
when the user clicks or moves the mouse pointer away from the designated
area. You'll probably be familiar with the tooltips that are associated
with toolbar buttons. Those "tooltips" are conveniencies provided by the
toolbar control. If you want tooltips for other windows/controls, you need
to create your own tooltip control.</font>
<br><font face="Tahoma">Now that you know what a tooltip is, let's go on
to how we can create and use it. The steps are outlined below:</font>
<ol>
<li>
<font face="Tahoma">Create a tooltip control with CreateWindowEx</font></li>

<li>
<font face="Tahoma">Define a region that the tooltip control will monitor
for mouse pointer movement.</font></li>

<li>
<font face="Tahoma">Submit the region to the tooltip control</font></li>

<li>
<font face="Tahoma">Relay mouse messages of the submitted region to the
tooltip control (this step may occur earlier, depending on the method used
to relay the messages)</font></li>
</ol>
<font face="Tahoma">We wll next examine each step in detail.</font>
<h4>
<font face="Tahoma">Tooltip Creation</font></h4>
<font face="Tahoma">A tooltip control is a common control. As such, you
need to call <b><font color="#FFFFCC">InitCommonControls</font></b> somewhere
in your source code so that MASM implicitly links your program to comctl32.dll.
You create a tooltip control with CreateWindowEx. The typical scenario
would be like this:</font>
<blockquote><b><font face="Tahoma"><font color="#99FF99">.data</font></font></b>
<br><b><font face="Tahoma"><font color="#99FF99">TooltipClassName db "Tooltips_class32",0</font></font></b>
<br><b><font face="Tahoma"><font color="#99FF99">.code</font></font></b>
<br><b><font face="Tahoma"><font color="#99FF99">.....</font></font></b>
<br><b><font face="Tahoma"><font color="#99FF99">invoke InitCommonControls</font></font></b>
<br><b><font face="Tahoma"><font color="#99FF99">invoke CreateWindowEx,
NULL, addr TooltipClassName, NULL, TIS_ALWAYSTIP, CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL</font></font></b></blockquote>
<font face="Tahoma">Note the window style: <b><font color="#FFFFCC">TIS_ALWAYSTIP</font></b>.
This style specifies that the tooltip will be shown when the mouse pointer
is over the designated area regardless of the status of the window that
contains the area. Put simply, if you use this flag, when the mouse pointer
hovers over the area you register to the tooltip control, the tooltip window
will appear even if the window under the mouse pointer is inactive.</font>
<br><font face="Tahoma">You don't have to include <b><font color="#FFFFCC">WS_POPUP</font></b>
and <b><font color="#FFFFCC">WS_EX_TOOLWINDOW</font></b> styles in CreateWindowEx
because the tooltip control's window procedure adds them automatically.
You also don't need to specify the coordinate, the height and width of
the tooltip window: the tooltip control will adjust them automatically
to fit the tooltip text that will be displayed, thus we supply <b><font color="#FFFFCC">CW_USEDEFAULT</font></b>
in all four parameters. The remaining parameters are not remarkable.</font>
<h4>
<font face="Tahoma">Specifying the tool</font></h4>
<font face="Tahoma">The tooltip control is created but it's not shown immediately.
We want the tooltip window to show up when the mouse pointer hovers over
some area. Now is the time to specify that area. We call such area "<b><font color="#FFFFCC">tool</font></b>".
A tool is a rectangular area on the client area of a window which the tooltip
control will monitor for mouse pointer. If the mouse pointer hovers over
the tool, the tooltip window will appear. The rectangular area can cover
the whole client area or only a part of it. So we can divided tool into
two types: one that is implemented as a window and another that is implemented
as a rectangular area in the client area of some window. Both has their
uses. The tool that covers the whole client area of a window is most frequently
used with controls such as buttons, edit controls and so on. You don't
need to specify the coordinate and the dimensions of the tool: it's assumed
to be the whole client area of the window. The tool that is implemented
as a rectangular area on the client area is useful when you want to divide
the client area of a window into several regions without using child windows.
With this type of tool, you need to specify the coordinate of the upper
left corner and the width and height of the tool.</font>
<br><font face="Tahoma">You specify the tool with the<b><font color="#99FF99">
TOOLINFO</font></b> structure which has the following definition:</font>
<blockquote><b><tt><font color="#99FF99">TOOLINFO STRUCT</font></tt></b>
<br><b><tt><font color="#99FF99">&nbsp; cbSize&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
DWORD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ?</font></tt></b>
<br><b><tt><font color="#99FF99">&nbsp; uFlags&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
DWORD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ?</font></tt></b>
<br><b><tt><font color="#99FF99">&nbsp; hWnd&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
DWORD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ?</font></tt></b>
<br><b><tt><font color="#99FF99">&nbsp; uId&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
DWORD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ?</font></tt></b>
<br><b><tt><font color="#99FF99">&nbsp; rect&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
RECT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;></font></tt></b>
<br><b><tt><font color="#99FF99">&nbsp; hInst&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
DWORD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ?</font></tt></b>
<br><b><tt><font color="#99FF99">&nbsp; lpszText&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
DWORD&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ?</font></tt></b>
<br><b><tt><font color="#99FF99">&nbsp; lParam&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
LPARAM&nbsp;&nbsp;&nbsp;&nbsp; ?</font></tt></b>
<br><b><tt><font color="#99FF99">TOOLINFO ENDS</font></tt></b></blockquote>

<center><table BORDER >
<tr ALIGN=CENTER BGCOLOR="#666600">
<td>Field Name</td>

<td>Explanation</td>
</tr>

<tr>
<td><font face="Tahoma">cbSize</font></td>

<td><font face="Tahoma">The size of the TOOLINFO structure. You <b><font color="#FFFFCC">MUST</font></b>
fill this member. Windows will not flag error if this field is not filled
properly but you will receive strange, unpredictable results.</font></td>
</tr>

<tr>
<td><font face="Tahoma">uFlags</font></td>

<td><font face="Tahoma">The bit flags that specifies the characteristics
of the tool. This value can be a combination of the following flags:</font>
<ul>
<li>
<font face="Tahoma"><b><font color="#66FF99">TTF_IDISHWND</font></b>&nbsp;
"ID is hWnd". If you specify this flag, it means you want to use a tool
that covers the whole client area of a window (the first type of tool above).
If you use this flag, you <b><font color="#FFFF99">must</font></b> fill
the <b><font color="#FFFF99">uId
</font></b>member of this structure with
the handle of the window you want to use. If you don't specify this flag,
it means you want to use the second type of tool, the one that is implemented
as the rectangular area on the client window. In that case, you need to
fill the <b><font color="#FFFF99">rect
</font></b>member with the dimension
of the rectangle.</font></li>

<li>
<font face="Tahoma"><b><font color="#66FF99">TTF_CENTERTIP&nbsp; </font></b>Normally
the tooltip window will appear to the right and below the mouse pointer.
If you specify this flag, the tooltip window will always appear directly
below the tool and is centered regardless of the position of the mouse
pointer.</font></li>

<li>
<font face="Tahoma"><b><font color="#99FF99">TTF_RTLREADING</font></b>&nbsp;
You can forget about this flag if your program is not designed specifically
for Arabic or Hebrew systems. This flag displays the tooltip text with
right-to-left reading order. Doesn't work under other systems.</font></li>

<li>
<font face="Tahoma"><b><font color="#66FF99">TTF_SUBCLASS</font></b>&nbsp;
If you use this flag, it means you tell the tooltip control to subclass
the window that the tool is on so that the tooltip control can intercept
mouse messages that are sent to the window. This flag is very handy. If
you don't use this flag, you have to do more work to relay the mouse messages
to the tooltip control.</font></li>
</ul>
</td>
</tr>

<tr>
<td><font face="Tahoma">hWnd</font></td>

<td><font face="Tahoma">Handle to the window that contains the tool. If
you specify<b><font color="#66FF99"> TTF_IDISHWND</font></b> flag, this
field is ignored since Windows will use the value in <b><font color="#FFFF99">uId</font></b>
member as the window handle. You need to fill this field if:</font>
<ul>
<li>
<font face="Tahoma">You don't use <b><font color="#66FF99">TTF_IDISHWND</font></b>
flag (in other words, you use a rectangular tool)</font></li>

<li>
<font face="Tahoma">You specify the value <b><font color="#66FF99">LPSTR_TEXTCALLBACK</font></b>
in <b><font color="#FFFF99">lpszText</font></b> member. This value tells
the tooltip control that, when it needs to display the tooltip window,
it must ask the window that contains the tool for the text to be displayed.
This is a kind of dynamic realtime tooltip text update. If you want to
change your tooltip text dynamically, you should specify <b><font color="#66FF99">LPSTR_TEXTCALLBACK</font></b>
value in <b><font color="#FFFF99">lpszText</font></b> member. The tooltip
control will send <b><font color="#66FF99">TTN_NEEDTEXT</font></b> notification
message to the window identified by the handle in <b><font color="#FFFF99">hWnd</font></b>
field.</font></li>
</ul>
</td>
</tr>

<tr>
<td><font face="Tahoma">uId</font></td>

<td><font face="Tahoma">The value in this field can have two meanings,
depending on whether the <b><font color="#FFFF99">uFlags</font></b> member
contains the flag
<b><font color="#66FF99">TTF_IDISHWND</font></b>.</font>
<ul>
<li>
<font face="Tahoma">Application-defined tool ID if the <b><font color="#66FF99">TTF_IDISHWND
</font></b>flag
is not specified. Since this means you use a tool which covers only a part
of the client area, it's logical that you can have many such tools on the
same client area (without overlap). The tooltip control needs a way to
differentiate between them. In this case, the window handle in hWnd member
is not enough since all tools are on the same window. The application-defined
IDs are thus necessary. The IDs can be any value so long as they are unique
among themselves.</font></li>

<li>
<font face="Tahoma">The handle to the window whose whole client area is
used as the tool if the <b><font color="#66FF99">TTF_IDISHWND</font></b>
flag is specified. You may wonder why this field is used to store the window
handle instead of the <b><font color="#FFFF99">hWnd</font></b> field above.
The answer is: the hWnd member may already be filled if the value <b><font color="#66FF99">LPSTR_TEXTCALLBACK</font></b>
is specified in the <b><font color="#FFFF99">lpszText</font></b> member
and the window that is responsible for supplying the tooltip text and the
window that contains the tool may <b><font color="#FFFF99">NOT</font></b>
be the same ( You can design your program so that a single window can serve
both roles but this is too restrictive. In this case, Microsoft gives you
more freedom. Cheers.)</font></li>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜精品久久久久久久99水蜜桃 | 中文字幕精品—区二区四季| 99re这里只有精品视频首页| 日本成人中文字幕| 中文文精品字幕一区二区| 欧美高清视频www夜色资源网| 成人激情校园春色| 久久精品国产在热久久| 亚洲最大成人综合| 国产精品毛片大码女人| 2023国产精品| 欧美福利视频导航| 色拍拍在线精品视频8848| 国产成人自拍高清视频在线免费播放| 亚洲国产日产av| 国产精品国产三级国产专播品爱网| 91精品免费在线| 色婷婷久久99综合精品jk白丝| 成人自拍视频在线| 国产精品自在欧美一区| 久久99精品国产麻豆不卡| 亚洲第一搞黄网站| 亚洲综合区在线| 亚洲免费在线看| 欧美国产精品久久| 中文字幕精品一区二区三区精品| 精品国产91乱码一区二区三区| 欧美视频一区在线| 在线看日韩精品电影| 成人a区在线观看| 成人一级片网址| 欧美在线视频全部完| 99精品国产视频| 9人人澡人人爽人人精品| 成人美女视频在线观看| 成人综合在线观看| 成人av网址在线观看| 高潮精品一区videoshd| 国产电影一区在线| 成人精品gif动图一区| 国产乱码字幕精品高清av| 国产一区二区三区在线观看免费 | 国产乱子轮精品视频| 美国精品在线观看| 麻豆91精品91久久久的内涵| 日韩av在线播放中文字幕| 日韩电影在线免费看| 日韩av一区二区在线影视| 久久丁香综合五月国产三级网站| 久久国产三级精品| 国产成人啪午夜精品网站男同| 国产高清成人在线| 91网站最新地址| 色偷偷成人一区二区三区91| 色综合久久久久| 欧美放荡的少妇| 日韩欧美一区二区免费| 久久久精品一品道一区| 国产欧美日韩精品一区| 国产精品久久99| 亚洲成av人在线观看| 久久国产福利国产秒拍| 国产91精品在线观看| 日本韩国欧美在线| 91精品国产全国免费观看| 亚洲人123区| 亚洲午夜在线电影| 久久精品国产**网站演员| 成人精品视频一区| 欧美精品 日韩| 国产肉丝袜一区二区| 悠悠色在线精品| 日韩av午夜在线观看| 国产mv日韩mv欧美| 欧美日韩一区二区三区免费看| 日韩欧美亚洲国产另类| 国产精品进线69影院| 日本欧美韩国一区三区| 高清国产午夜精品久久久久久| 在线免费观看一区| 精品国产免费视频| 亚洲精品一卡二卡| 精品一区二区三区免费播放| 91浏览器入口在线观看| 日韩天堂在线观看| 亚洲同性gay激情无套| 奇米精品一区二区三区在线观看一| 丰满白嫩尤物一区二区| 4438成人网| 亚洲欧美在线aaa| 蜜桃视频一区二区三区| 91免费看视频| 久久亚洲精精品中文字幕早川悠里| 亚洲精品成人悠悠色影视| 国产综合久久久久久久久久久久| 在线免费不卡电影| 日本一区二区三区久久久久久久久不| 亚洲一区二区在线免费观看视频| 国产精品一二三四五| 欧美日韩精品系列| 国产精品国产三级国产有无不卡 | 视频一区国产视频| 99精品国产视频| 久久综合九色欧美综合狠狠| 成人性色生活片| 欧美一级在线视频| 亚洲综合一二三区| 北岛玲一区二区三区四区| 7777精品伊人久久久大香线蕉的 | 久久久久久亚洲综合影院红桃| 欧美挠脚心视频网站| 中文字幕精品在线不卡| 麻豆91在线播放| 这里只有精品视频在线观看| 一区二区在线观看免费视频播放 | 国产成人在线视频免费播放| 7777精品伊人久久久大香线蕉经典版下载| 亚洲欧洲在线观看av| 国产毛片精品视频| 日韩欧美国产综合在线一区二区三区| 亚洲免费电影在线| 99视频有精品| 国产精品久久久久aaaa樱花| 国产精品77777| 精品国产一区二区三区不卡| 日韩二区三区在线观看| 欧美日韩高清影院| 亚洲福利国产精品| 欧美性大战xxxxx久久久| 亚洲另类春色国产| 欧美综合一区二区| 亚洲黄色免费电影| 欧日韩精品视频| 一区二区三区小说| 色94色欧美sute亚洲线路一ni| 亚洲同性gay激情无套| 波多野结衣中文字幕一区二区三区 | 日韩理论片中文av| 91免费看`日韩一区二区| 最新中文字幕一区二区三区| 99久久99久久免费精品蜜臀| 自拍偷拍亚洲激情| 91影视在线播放| 亚洲综合色视频| 欧美精品日韩精品| 美女诱惑一区二区| 精品美女在线观看| 国产成人精品免费网站| 欧美国产综合色视频| 成人污污视频在线观看| 中文字幕视频一区| 日本久久电影网| 国产在线播精品第三| 久久久国产精品麻豆| 丰满放荡岳乱妇91ww| 亚洲视频免费在线观看| 欧美午夜理伦三级在线观看| 日产国产高清一区二区三区| 欧美一二三四在线| 国产精品综合视频| 中文字幕一区二区三区在线播放| 色综合久久久久综合99| 一区二区三区四区高清精品免费观看| 欧美三级电影网站| 精品一区二区三区在线观看国产 | 午夜精品福利在线| 日韩欧美中文字幕制服| 国产成人a级片| 一区二区三区中文字幕在线观看| 欧美乱妇15p| 国产成人精品免费网站| 亚洲精品日韩一| 91精品在线麻豆| 成人免费视频app| 亚洲成人久久影院| 精品国产伦一区二区三区免费| 岛国一区二区在线观看| 亚洲电影你懂得| 久久九九影视网| 欧美日韩国产精选| 国产成人免费视频网站高清观看视频| 亚洲精品成人精品456| 欧美精品一区二| 欧美日韩国产高清一区| 国产高清不卡一区二区| 亚洲成人7777| 中文字幕亚洲区| 日韩精品一区二区三区蜜臀| 这里只有精品视频在线观看| 日韩一区二区三区av| 成人高清av在线| 久久精品国内一区二区三区| 一区二区三区国产| 久久久精品国产免大香伊| 欧美日韩电影一区| 波多野结衣亚洲一区| 免费观看日韩av| 亚洲一级二级在线| 亚洲色图欧美偷拍| 久久精品欧美日韩精品|