Re: Scrollbars in Listview always visile

From: Michael Hoffmann (m.hoffmann)
Date: 05/08/04

  • Next message: Gary Chanson: "Re: Help with dynamically changing checkbox text color"
    Date: Sat, 8 May 2004 17:42:52 +0200
    
    

    Hello Christian, Gary and Severian,

    "Christian ASTOR" <castorix@club-internet.fr> wrote in message news:urGhsJONEHA.2780@TK2MSFTNGP09.phx.gbl...
    > Michael Hoffmann a écrit:
    >
    > > has anyone got an idea how I could force the scrollbars in a listview to remain visible even when they are not needed?
    >
    > ShowScrollBar() after WM_PAINT (WM_PRINT)

    I've tried that one already with disappointing results.

    Here is what works nicely: Hook two calls from comctl32.dll to user32.dll by modifying the dll's import table in memory.

    SetScrollInfo: Add the SIF_DISABLENOSCROLL flag in the fMask member of the passed SCROLLINFO structure before passing it on.

    ShowScrollBar: Always pass on TRUE as bShow parameter.

    Best regards,

    Michael.


  • Next message: Gary Chanson: "Re: Help with dynamically changing checkbox text color"

    Relevant Pages

    • Custom colored scrollbars in ListView
      ... In an attempt to apply custom colors to the scrollbars inside a listview, ... have come across the FlatSB_* set of functions. ... I made sure I am using the Common Controls 5. ...
      (microsoft.public.win32.programmer.ui)
    • How to get/set scrollbar positions in ListView?
      ... I reload the items in the listview on a regular schedule (i.e. clear the ... the position of the scrollbars after reloading the data. ... still want to set the Horizontal scrollbar and I don’t know how to do this. ...
      (microsoft.public.dotnet.languages.vb)
    • Re: Extreme flicker in ListView when VirtualMode enabled
      ... the question is why is the whole ListView ... redrawn everytime VirtualListSize is changed? ... Redrawing the scrollbars would ... >> If VirtualMode is enabled in ListView, every time the VirtualListSize ...
      (microsoft.public.dotnet.framework.windowsforms.controls)
    • Re: ListView Scrollbars question
      ... I'm using the standard ListView control of VS 2003. ... ListView with 20 items at first, and then add items as the user scrolls. ... Tomas ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Scrollbars in Listview always visile
      ... >> has anyone got an idea how I could force the scrollbars in a listview to ... for the simple days of list boxes and LBS_DISABLENOSCROLL. ... If you're only using a subset of the capabilities of the list view, ...
      (microsoft.public.win32.programmer.ui)