Re: ListView

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Liegt tatsächlich daran, dass sie im virtuellen Modus sind.
Ein RedrawItems in Resize löst das Problem, jedoch wie gesagt mit starkem
flackern.
Gibts da keine schönere Möglichkeit?

Hab mal RedrawItems in dem Ereignis RetrieveVirtualItem in der Hoffnung
nicht alle ungültig erklären zu müssen, sondern nur die welche die ListView
will. Dies endet jedoch in einer Rekursion, sprich Stacküberlauf...

Mfg
Michael

"Michael Sabo" <Michael.Sabo@xxxxxx> schrieb im Newsbeitrag
news:466d1129$0$20290$9b4e6d93@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi Leute,

habe gerade nach meinem Problem gegoogelt aber nichts gefunden. Bin ich
der einzige oder kennt Ihr das Problem?

Habe eine ListView in einer Form. Wird die Form angezeigt werden alle
Items schön angezeigt (Large-Icons-View). Verändere ich allerdings die
Größe des Fensters, dann ändert sich auch die Größe der ListView (Dock =
Fill), aber die Items werden nicht korrekt gezeichnet!? (AutoArrange ist
aktiviert)

Je nachdem "wie schnell" man das Fenster vergrößert, bleibt der Bereich
weiss oder man sieht Teile der Icons. Sprich die Icons sind also da.
Sobald ein Item den Focus erhält (Maus oder per Tastatur-Navigation)
werden die Icons sichtbar.

Ein Refresh im Resize des Fensters würde das Problem lösen. Allerdings
fangen sie dafür an zu flackern.

Könnte es was damit zu tun haben, dass eine Virtuelle ListView verwendet
wird?

Gruss
Michael



.



Relevant Pages

  • Re: Trap double-click on form title bar
    ... >>> resize event that adjusts the column widths of a listview control ... If you put a breakpoint in the Resize ... > (Grid details) ... > ExtendedCost col width = 2805 ...
    (microsoft.public.vb.general.discussion)
  • Re: VB6 - Sort Listview and select correct item
    ... You can't actually hide a listview column though, ... set it's width to 0 but the user can resize that. ... To prevent the user from resizing columns, subclass the Header control ... Long, ByVal wParam As Long, ByVal lParam As Long) As Long ...
    (microsoft.public.vb.controls)
  • Re: How is one supposed to use the KDE4 desktop ?
    ... How do I resize the Desktop plasmoid? ... I understand that that was a Fedora work-around. ... icons from the panel and add them again in the order you want them. ... 1024x768 is landscape, isn't it? ...
    (Fedora)
  • Re: multi folder view - does this exist?
    ... Personally I would never bother with putting it in an OCX, ... Adding icons to a listview is a doddle: Add a image list control to the same ... Code: Set LV.SmallIcons = ImageListName ...
    (microsoft.public.vb.general.discussion)
  • Re: listview item loses background color after I change selection
    ... row, I would see the 3rd row with a red background, but now I don't - ... If I resize the window (which resizes the listview) I ... background colour I assigned, ...
    (microsoft.public.dotnet.framework.windowsforms.controls)