在视图中响应KEYDOWN的消息,在每次的KEYDOWN时使视图的滚动条滚动。

解决方案 »

  1.   

    响应KEYDOWN消息,使用setscrollpos等函数。
      

  2.   

    为什么MSDN上这么说
    But CScrollView adds the following features to its CView capabilities:   It manages window and viewport sizes and mapping modes. 
      It scrolls automatically in response to scroll-bar messages. 
    ** It scrolls automatically in response to messages from the keyboard, a non-scrolling mouse, or the IntelliMouse wheel. 
    不是说可以自动响应么?
      

  3.   

    什么是自己添加的?
    scrollbar?
    我的不是,我的视图类就是CScrollView的