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


            午夜欧美精品久久久久久久| 狠狠色婷婷久久一区二区| 国产精品免费看久久久| 国内精品久久久久| 久久精品三级视频| 久久夜色精品国产噜噜亚洲a| 四虎国产精品成人免费久久| 亚洲中文字幕久久精品无码APP| 狠狠色婷婷综合天天久久丁香 | 99久久综合狠狠综合久久| 久久亚洲精品无码播放| 亚洲AV无码久久精品成人| 亚洲成人精品久久| 亚洲精品WWW久久久久久| 91久久精品91久久性色| 亚洲国产婷婷香蕉久久久久久| AAA级久久久精品无码片| 亚洲人成网站999久久久综合| 丰满少妇高潮惨叫久久久| 天天影视色香欲综合久久| 丰满少妇高潮惨叫久久久| 97精品依人久久久大香线蕉97| 精品久久久久久无码国产| 97久久香蕉国产线看观看| 久久精品一区二区三区AV| 久久99精品免费一区二区| 97久久久精品综合88久久| 久久久亚洲AV波多野结衣| 亚洲综合久久久| 亚洲国产成人久久一区久久| 精品无码久久久久久国产| 青青草原1769久久免费播放| 无码任你躁久久久久久| 久久久久久久免费视频| 国产精品午夜久久| 久久综合综合久久狠狠狠97色88| 亚洲AV无码1区2区久久| 亚洲中文久久精品无码| 国产精品久久久久久五月尺| 青青热久久国产久精品 | 精品视频久久久久|