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

            牽著老婆滿街逛

            嚴(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 楊粼波 閱讀(363) 評(píng)論(0)  編輯 收藏 引用 所屬分類: 文章收藏

            久久精品18| 久久久久久精品免费看SSS| 日本亚洲色大成网站WWW久久| 久久国产欧美日韩精品| 国产精品99久久精品爆乳| 狠狠综合久久综合88亚洲| 国产综合精品久久亚洲| 人妻精品久久久久中文字幕69| 久久国产影院| 久久99热狠狠色精品一区| 无码超乳爆乳中文字幕久久| 国产精品伦理久久久久久| 狠狠色丁香久久婷婷综合五月 | 精品国产乱码久久久久软件| 国产精品99久久久久久猫咪| 久久久久AV综合网成人| 中文精品99久久国产| 久久97久久97精品免视看| 久久免费高清视频| 久久精品中文闷骚内射| 久久精品国产清自在天天线| 久久精品夜色噜噜亚洲A∨| 久久国产精品99久久久久久老狼| 色偷偷88888欧美精品久久久| 伊人久久精品影院| 青青久久精品国产免费看| 久久国产精品无码网站| 亚洲国产精品一区二区久久| 国产韩国精品一区二区三区久久 | 国产99久久久国产精免费| 久久99国产综合精品| 久久男人Av资源网站无码软件| 久久精品中文无码资源站| 成人综合久久精品色婷婷| 久久婷婷五月综合成人D啪 | 国产亚洲美女精品久久久久狼| 少妇久久久久久久久久| 亚洲va中文字幕无码久久| 亚洲AV乱码久久精品蜜桃| 欧美一区二区三区久久综| 久久66热人妻偷产精品9|