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

            Make Oneself More Strong

            mcs51a( 高興就寫點(diǎn):-),不高興就不寫 )

            VC cursor的位置(hot spot)

               被光標(biāo)的位置,折騰了大半天.
               問題,在程序中客戶區(qū)設(shè)置光標(biāo)變?yōu)榉糯?Zoom out)光標(biāo).當(dāng)放大光標(biāo)(Zoom out)從客戶區(qū)接近到Scrollview 的ScrollBar時(shí),應(yīng)該變成普通的Arrow 光標(biāo).但奇怪的是,非但沒變,反而是越過Scrollbar ,才變成普通的Arrow 光標(biāo).
              查看代碼中的OnSetCursor,SetCurosr 都不是問題,MSDN,Goole 一圈也沒發(fā)現(xiàn),有人遇到此問題.
              分析下,以為是光標(biāo)大小問題,使用VC調(diào)整 Cursor資源,意外發(fā)現(xiàn)hot spot這個(gè)屬性,將放大光標(biāo)(Zoom out)的hot spot從(0,0)調(diào)整到最下面的點(diǎn)(28,28)位置,運(yùn)行程序,正常

            MSDN 上的介紹,

              
            Setting a Cursor's Hot Spot 

            The hot spot of a cursor is the point to which Windows refers in tracking the cursor's position. By default, the hot spot is set to the upper-left corner of the cursor (coordinates 0,0). The Hotspot property in the Properties window shows the hot spot coordinates.

            To set a cursor's hot spot

            1. On the Image Editor toolbar, click the Set Hotspot tool.

            2. Click the pixel you want to designate as the cursor's hot spot.

              The Hotspot property in the Properties window displays the new coordinates.

              NoteTip

              Tool tips appear when you hover your cursor over a toolbar button. These tips can help you identify the function of each button.

            For information on adding resources to managed projects, please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.

            Requirements

            None



            posted on 2010-08-11 09:22 mcs51a 閱讀(1204) 評論(0)  編輯 收藏 引用


            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            99久久99久久精品国产| 亚洲国产精品久久久久久| 青青青青久久精品国产h久久精品五福影院1421 | 国内精品九九久久久精品| 人人狠狠综合久久亚洲88| 亚洲乱码日产精品a级毛片久久 | 99国产精品久久| 久久精品无码专区免费 | 伊人久久大香线蕉综合热线| 2020国产成人久久精品| 久久本道伊人久久| 久久精品国产亚洲AV忘忧草18| 亚洲AV无码1区2区久久 | 亚洲中文字幕无码久久2017| 国产L精品国产亚洲区久久| 天天爽天天狠久久久综合麻豆| 国产精品免费久久久久久久久| 久久夜色精品国产欧美乱| 日日狠狠久久偷偷色综合免费| 青青青伊人色综合久久| 久久精品中文无码资源站| 亚洲色欲久久久久综合网| 国产真实乱对白精彩久久| 久久国产一区二区| 久久这里只有精品18| 一本色道久久88精品综合| 久久久国产视频| 亚洲欧美另类日本久久国产真实乱对白 | 天天爽天天狠久久久综合麻豆| 一本久道久久综合狠狠躁AV| 日韩影院久久| 久久久午夜精品| 久久久久99这里有精品10| 亚洲欧洲久久久精品| 热综合一本伊人久久精品| 久久精品夜色噜噜亚洲A∨ | 久久久一本精品99久久精品88| 亚洲国产精品无码久久98| 69久久精品无码一区二区| 国产精品久久毛片完整版| 亚洲国产精品婷婷久久|