• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            牽著老婆滿(mǎn)街逛

            嚴(yán)以律己,寬以待人. 三思而后行.
            GMail/GTalk: yanglinbo#google.com;
            MSN/Email: tx7do#yahoo.com.cn;
            QQ: 3 0 3 3 9 6 9 2 0 .

            Alpha Blending (Transparent) Windows

            ?

            Environment: Windows 2000 VC 6.0 Newest Win32 API (Required)

            IMPORTANT NOTE:
            To compile this sample you must be running Windows 2000 and the latest WIN32 API which you can download from
            Microsoft.
            This program will only run under Windows 2000. It makes use of the new features of the OS.

            The purpose of this example is to enable the new Alpha Blending features of Microsoft Windows 2000. It is very easy to do and hardly needs a whole class to do it, but I felt a little cheesy just posting two function calls. :)

            To use, add the CAlphaBlend class to your project. Modify the StdAfx.h file to contain the following lines right above the #define VC_EXTRALEAN:

            #define _WIN32_WINNT 0x0500
            #define WINVER 0x0500
            

            These lines will tell the compiler that it is for Windows NT 5.0 (better known as Windows 2000). They are critical and only work if you have the newest Win32 API.

            Then add the following lines of code before you display your window (or after you display it):

            // assuming we are about to ShowWindow() in the MyApp.cpp of an SDI
            CAlphaBlend ab(m_pMainWnd);
            ab.SetTransparent();
            

            This code can be called before or after a window is displayed. You can adjust the opacity (amount of transparency) with the constructor, or the following function:

            // valid ranges are 0-255, 255-being totally opaque (not transparent)
            ab.SetOpacity(125);
            
            // I found 220 does about the best blend.

            One final note. The alpha blending in Windows 2000 is very slow. I have tried many different ways to optimize it and could never get it any faster than it is. The only way I can think of is to handle the algorithm and thus the Alpha Blending myself. I don't really want to tackle that at the moment, so any optimizations any of you could make would be cool. Please let me know.

            Downloads

            Download demo project - 18 Kb
            Download source - 2 Kb

            posted on 2006-06-22 20:44 楊粼波 閱讀(365) 評(píng)論(0)  編輯 收藏 引用 所屬分類(lèi): 文章收藏

            免费精品99久久国产综合精品| 久久久久国产一区二区| 亚洲欧美成人综合久久久| 亚洲狠狠婷婷综合久久久久| 91精品国产高清久久久久久io| 国产成人精品久久免费动漫 | 久久天天躁狠狠躁夜夜躁2014| 中文字幕久久亚洲一区| 亚洲综合日韩久久成人AV| 国产91色综合久久免费分享| 久久不见久久见免费影院www日本| 伊人久久综合无码成人网| 97久久精品人人做人人爽| 亚洲级αV无码毛片久久精品| 久久综合久久综合九色| 亚洲欧美伊人久久综合一区二区| 久久99精品国产麻豆蜜芽| 久久精品国产第一区二区三区| 久久亚洲欧洲国产综合| 日本福利片国产午夜久久| 亚洲午夜久久久久久久久久| 狠狠色综合网站久久久久久久| 99国产欧美精品久久久蜜芽| 久久精品免费一区二区| 久久精品一区二区影院| 中文字幕一区二区三区久久网站| 国产亚洲欧美精品久久久| 久久久久久曰本AV免费免费| 久久久久综合中文字幕| 久久国产热这里只有精品| 欧美综合天天夜夜久久| 久久99国产精品久久久 | 国产精品99久久精品爆乳| 久久天天躁狠狠躁夜夜96流白浆| 久久亚洲AV无码精品色午夜麻豆| 国产激情久久久久影院老熟女免费 | 成人资源影音先锋久久资源网| 亚洲av成人无码久久精品 | 久久久久se色偷偷亚洲精品av| 久久婷婷五月综合97色直播| 久久久免费观成人影院 |