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

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

?? state_images.shtml

?? mfc資源大全包含MFC編程各個方面的源碼
?? SHTML
字號:
<HTML>
<HEAD>
   <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   <META NAME="Author" CONTENT="Zafir Anjum">
   <META NAME="GENERATOR" CONTENT="Mozilla/4.0 [en] (WinNT; I) [Netscape]">
   <TITLE>Setting up state images</TITLE>
</HEAD>
<body background="../fancyhome/back.gif" bgcolor="#FFFFFF" link="#B50029" vlink="#8E2323" alink="#FF0000" bgproperties="fixed">
<table WIDTH="100%">
<tr WIDTH="100%">
<td align=center><!--#exec cgi="/cgi/ads.cgi"--><td>
</tr>
</table>


<CENTER>
<H3>
<FONT COLOR="#AOAO99">Setting up state images</FONT></H3></CENTER>

<CENTER>
<H3>

<HR></H3></CENTER>
As you are already aware, the tree view control can display two images
for each item. Each of these two images belong in different image list
controls that have to be associated with the tree control. Whereas, an
item can have upto 256 item images, it can only have 15 state images. Nevertheless,
the programming for the state images is very similar to the programming
for item images.

<P>An image list has to be created before it can be associated with the
tree view control. You can create the image list from a single bitmap,
horizontally laid out to contain all the images or you can add individual
icons to the image list.
<H4>
Step 1: Create the bitmap</H4>
Add a bitmap resource in the resource editor that contains all the icons.
Here is an example below. The individual icons in this bitmap are 13x13
pixels, but you may choose a different size and it need not be a square.
The first image in the list is not used.

<P>&nbsp;<IMG SRC="state_images.gif" HEIGHT=15 WIDTH=69>
<H4>
Step 2: Add a member variable to hold the image list</H4>
The member variable is usually added to the class that is responsible for
setting up the tree view control. This would usually be the CView derivative
or a CDialog derivative. You can also add the member variable to the sub-class
of CTreeCtrl which is what I recommend.
<BR>&nbsp;
<PRE><TT><FONT COLOR="#990000">class CTreeCtrlX : public CTreeCtrl
{
// Construction
public:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CTreeCtrlX();

// Attributes
public:
&nbsp;&nbsp;&nbsp; CImageList m_imageState ;
&nbsp;&nbsp;&nbsp; :
&nbsp;&nbsp;&nbsp; :
&nbsp;&nbsp;&nbsp; :

}</FONT></TT></PRE>

<H4>
Step 3: Create and set the image list</H4>
Call the Create() function of the image object with the resource id of
the bitmap we created in step 1 and the width of each icon. The height
of the icons is automatically set to the height of the bitmap. The third
argument required by the Create() function represents the number of new
images the resized image list can contain. Since we are creating the image
list from a bitmap, we would normally not add any more images at runtime
so we let this value be one. The last argument is the mask color. That
is, all the pixels of this color will behave as a transparent color. Since
normally the window color is white, we set the mask color to white.

<P>Once the image list has been created, the tree view control has to be
instructed to use it. We do that by calling the SetImageList() function.
The following statement usually belongs in the OnInitDialog() function
or the OnInitialUpdate() function. Note that in the call to SetImageList(),
the second argument is TVSIL_STATE.
<BR>&nbsp;
<PRE><TT><FONT COLOR="#990000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_tree.m_imageState.Create( IDB_STATE, 13, 1, RGB(255,255,255) );
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_tree.SetImageList( &amp;(m_tree.m_imageState), TVSIL_STATE );</FONT></TT></PRE>

<H4>
Step 4: Specify state icons for the items</H4>
Once an image list has been associated with the tree view control, you
can instruct the tree view control to the use the state image you want
when inserting an item to the control. You can also use the SetItemState()
image function. In both the cases you have to use the macro INDEXTOSTATEIMAGEMASK().
This macro essentially rearranges the bits of the index value to be compatible
with what the tree view control expects. To remove the state image for
an item, use the index zero. Here are example usages 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美成人激情免费网| 日韩免费高清电影| 粉嫩久久99精品久久久久久夜| 丝袜诱惑制服诱惑色一区在线观看| 亚洲欧美另类小说| 亚洲摸摸操操av| 一区二区成人在线| 亚洲午夜精品一区二区三区他趣| 亚洲一区二区三区不卡国产欧美| 一级特黄大欧美久久久| 婷婷久久综合九色综合绿巨人| 午夜视频一区二区三区| 免费看黄色91| 国产一区二区三区四区五区美女 | 亚洲另类中文字| 亚洲欧美福利一区二区| 午夜精品视频一区| 国内精品视频666| 99久久国产免费看| 欧美日韩午夜在线视频| 日韩亚洲欧美综合| 久久欧美一区二区| 亚洲欧美日韩国产手机在线 | 91在线高清观看| 91成人看片片| 欧美不卡一二三| 中文字幕色av一区二区三区| 一区二区三区在线视频播放 | 制服丝袜在线91| 欧美一级二级在线观看| 欧美日韩mp4| 日韩欧美一级特黄在线播放| 久久久三级国产网站| 国产性做久久久久久| 亚洲欧洲日产国码二区| 亚洲高清免费观看高清完整版在线观看| 久久亚洲综合av| 中文一区在线播放| 五月开心婷婷久久| 激情综合网av| 99re8在线精品视频免费播放| 91国在线观看| 日韩欧美高清一区| 国产精品福利一区二区三区| 亚洲国产精品综合小说图片区| 日韩av一区二区在线影视| 国产一区二区电影| 99re视频精品| 日韩欧美一区二区久久婷婷| 国产精品色一区二区三区| 亚洲一区免费在线观看| 国产一区二区视频在线播放| 色综合色狠狠综合色| 日韩午夜激情视频| 亚洲人精品午夜| 亚洲国产精品天堂| 99精品视频中文字幕| 91精品国产综合久久久蜜臀图片 | 成人黄色小视频| 777奇米四色成人影色区| 国产精品丝袜黑色高跟| 蜜桃精品视频在线| 色欧美日韩亚洲| 久久精品夜夜夜夜久久| 亚洲一区二区三区不卡国产欧美| 成人午夜av电影| 91精品国产入口在线| 亚洲免费观看高清完整版在线观看熊| 美女mm1313爽爽久久久蜜臀| 在线欧美小视频| 中文字幕第一区综合| 麻豆精品视频在线观看视频| 91豆麻精品91久久久久久| 国产欧美日韩另类视频免费观看| 免费高清在线视频一区·| 欧美三级一区二区| 亚洲精品一二三区| 成人开心网精品视频| 久久久精品天堂| 韩国女主播一区二区三区| 欧美日韩大陆在线| 亚洲.国产.中文慕字在线| 99精品一区二区三区| 自拍视频在线观看一区二区| 成人永久免费视频| 国产性色一区二区| 国产传媒一区在线| 久久在线观看免费| 国产老妇另类xxxxx| 精品国产污污免费网站入口| 免费高清在线一区| 日韩欧美不卡在线观看视频| 亚洲成人黄色影院| 欧美成人性福生活免费看| 水野朝阳av一区二区三区| 7777精品久久久大香线蕉| 亚洲444eee在线观看| 欧美丰满高潮xxxx喷水动漫| 日韩在线观看一区二区| 91精品国产丝袜白色高跟鞋| 奇米色一区二区三区四区| 日韩欧美国产麻豆| 国产精品77777| 中文字幕乱码亚洲精品一区| 91在线免费播放| 亚洲综合无码一区二区| 欧美日韩视频在线第一区 | 久久精品网站免费观看| 国产盗摄一区二区| 综合婷婷亚洲小说| 欧美日韩精品欧美日韩精品一| 日韩成人免费电影| 亚洲精品在线观| 韩国一区二区在线观看| 亚洲男人的天堂av| 欧美一区二区三区影视| 国产综合一区二区| 国产精品久99| 欧美久久久影院| 国产一区不卡精品| 亚洲激情在线激情| 91精品视频网| jizzjizzjizz欧美| 亚洲妇熟xx妇色黄| 国产亚洲综合在线| 在线视频一区二区免费| 青青草一区二区三区| 亚洲精品视频免费观看| 精品99一区二区三区| 91丨九色丨蝌蚪富婆spa| 蜜桃视频一区二区| 亚洲欧美另类小说视频| wwww国产精品欧美| 欧美日韩在线一区二区| 国产激情一区二区三区四区| 香蕉久久一区二区不卡无毒影院| 国产午夜精品一区二区三区嫩草| 欧美亚男人的天堂| 成人性生交大片免费看中文| 国产精品麻豆99久久久久久| 欧美美女一区二区在线观看| 成人国产视频在线观看| 久久99最新地址| 亚洲小说欧美激情另类| 国产精品美女久久久久久久| 日韩亚洲欧美在线| 欧美日韩美少妇| 91丨九色丨蝌蚪丨老版| 国产激情视频一区二区三区欧美| 日韩精品一级二级 | 日本一区二区三区国色天香| 欧美成人r级一区二区三区| 欧美色综合网站| 91亚洲精品乱码久久久久久蜜桃| 精品一区二区精品| 天天综合网天天综合色| 亚洲人成网站在线| 国产精品家庭影院| 99久久精品国产麻豆演员表| 国产一区二区成人久久免费影院| 丝袜美腿亚洲色图| 夜夜嗨av一区二区三区网页 | 国产精品乱人伦中文| 久久久久久久综合| 久久久高清一区二区三区| 欧美三级电影在线看| 日本高清不卡视频| 91久久精品一区二区二区| 91玉足脚交白嫩脚丫在线播放| aaa欧美色吧激情视频| 成人福利视频在线看| 成人动漫一区二区在线| 国产精选一区二区三区| 蜜臀久久99精品久久久久久9| 亚洲男人的天堂网| 亚洲激情综合网| 亚洲不卡在线观看| 五月婷婷久久综合| 日本欧美一区二区| 久久99久久久久久久久久久| 精品亚洲欧美一区| 国产成人精品一区二| 99re亚洲国产精品| 在线日韩av片| 欧美久久久久久蜜桃| 国产亚洲综合在线| 亚洲视频在线一区二区| 一区二区日韩av| 琪琪久久久久日韩精品| 国内外成人在线| 97久久超碰国产精品电影| 欧美色区777第一页| 日韩视频在线永久播放| 国产欧美精品国产国产专区| 亚洲日本一区二区三区| 午夜伊人狠狠久久| 黑人精品欧美一区二区蜜桃| www.成人网.com| 69精品人人人人| 中文字幕不卡在线观看|