• <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>

            牽著老婆滿街逛

            嚴以律己,寬以待人. 三思而后行.
            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 楊粼波 閱讀(366) 評論(0)  編輯 收藏 引用 所屬分類: 文章收藏

            久久久亚洲欧洲日产国码二区| 久久一区二区三区免费| 久久婷婷人人澡人人爽人人爱| 久久亚洲国产成人影院| 国产69精品久久久久APP下载 | 久久婷婷成人综合色综合| 久久婷婷激情综合色综合俺也去| 久久亚洲春色中文字幕久久久| 精品久久香蕉国产线看观看亚洲| 久久精品国产第一区二区| 漂亮人妻被黑人久久精品| 久久93精品国产91久久综合| 少妇人妻综合久久中文字幕| 人人狠狠综合久久亚洲婷婷| 久久亚洲日韩看片无码| 久久国产精品99国产精| 久久久久久久综合狠狠综合| 精品久久久久久综合日本| 亚洲狠狠婷婷综合久久蜜芽| 精品久久久久一区二区三区| 久久亚洲精品国产精品| 久久久久国产一区二区| 久久电影网一区| 亚洲精品乱码久久久久久蜜桃图片 | a级毛片无码兔费真人久久| 97精品伊人久久久大香线蕉| 国产精品美女久久久久av爽| 国内精品久久久久影院优 | 97久久精品人人做人人爽| 久久精品国产亚洲AV忘忧草18| 94久久国产乱子伦精品免费| 无码AV中文字幕久久专区| 久久综合偷偷噜噜噜色| 久久99国产精品成人欧美| 久久国产精品一区二区| 99久久精品日本一区二区免费| 少妇高潮惨叫久久久久久| 精品久久久久久国产| 中文字幕无码免费久久| 久久免费看黄a级毛片| 久久亚洲国产成人影院|