求CListCtrl的CScrollBar的自画方法

解决方案 »

  1.   

    CListCtrl::DrawItem
    virtual void DrawItem( LPDRAWITEMSTRUCT lpDrawItemStruct );ParameterslpDrawItemStructA long pointer to a DRAWITEMSTRUCT structure that contains information about the type of drawing required.ResCalled by the framework when a visual aspect of an owner-draw list view control changes. The itemAction member of the DRAWITEMSTRUCT structure defines the drawing action that is to be performed. By default, this member function does nothing. Override this member function to implement drawing for an owner-draw CListCtrl object.The application should restore all graphics device interface (GDI) objects selected for the display context supplied in lpDrawItemStruct before this member function terminates.
      

  2.   

    CScrollBar没办法自绘, 除非你自己写一个滚动条
      

  3.   

    有一个变通的办法,自己做个上下的图片按钮,然后把list的滚动条隐藏掉,然后自己在按图片按钮时触发上下滚动的消息 偶是这么做地呵呵