• <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): 文章收藏

            久久久久久久91精品免费观看| 久久人人爽人人爽人人爽| 日韩精品久久无码中文字幕| 久久天堂AV综合合色蜜桃网| 国内精品久久久久久久97牛牛| 99久久无码一区人妻| 无码任你躁久久久久久| 亚洲欧美伊人久久综合一区二区| 潮喷大喷水系列无码久久精品| 国产精品免费久久| 久久亚洲国产精品成人AV秋霞| 少妇精品久久久一区二区三区| 久久免费视频网站| 久久久久久久久久久久久久| 中文精品久久久久国产网址| 午夜精品久久久久久中宇| 国产一区二区精品久久凹凸| 精品久久久久久国产潘金莲| 日批日出水久久亚洲精品tv| 9999国产精品欧美久久久久久| 99精品久久久久久久婷婷| 9191精品国产免费久久| 国产精品美女久久久久| 国内精品九九久久精品| 免费精品久久久久久中文字幕 | 精品一二三区久久aaa片| 国产精品无码久久四虎| 91精品国产色综合久久| 精品国产99久久久久久麻豆| 免费精品国产日韩热久久| 国产午夜精品理论片久久| 久久综合综合久久97色| 99久久久国产精品免费无卡顿| 蜜臀久久99精品久久久久久小说| 色妞色综合久久夜夜| 一97日本道伊人久久综合影院| 久久精品无码免费不卡| 岛国搬运www久久| 色综合久久最新中文字幕| 狠狠色丁香婷婷久久综合不卡| 色狠狠久久AV五月综合|