TListView initialization during FormCreate

From: Android Cat (androidcat98_at_hotmail.com)
Date: 09/29/04


Date: Wed, 29 Sep 2004 14:01:32 -0400

During testing of an app, I noticed that a TListView with items on my main
form gets initialized _sometime_ during the main form's FormCreate. e.g.
The listview has items added during design. If I check at the start of
FormCreate, myview.items.count = 0. If I check at the end (after a small
amount of code: open a log file, seek to the end), count = 16 with the
design data there.

This doesn't really make a difference to my app because the listview won't
be initialized with the design data once it's finished, but I'd like to know
what magical event triggers the listview initialization for future
reference.

-- 
Ron Sharp. 


Relevant Pages

  • Re: Sending WM_LBUTTONDBLCLK to a ListView control
    ... I wrote up a quick WinForm app with a button and a listview. ... HWND of the listview and using its PointToScreen/PointToClient functions. ... public const UInt32 WM_MOUSEACTIVATE = 0x0021; ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Sending WM_LBUTTONDBLCLK to a ListView control
    ... I wrote up a quick WinForm app with a button and a listview. ... HWND of the listview and using its PointToScreen/PointToClient functions. ... public const UInt32 WM_MOUSEACTIVATE = 0x0021; ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Sending WM_LBUTTONDBLCLK to a ListView control
    ... clicking on the ListView). ... To simplify the troubleshooting I have built a simple .NET app with a label ... public const UInt32 WM_MOUSEACTIVATE = 0x0021; ... public static extern IntPtr SendNotifyMessage(IntPtr hWnd, uint Msg, IntPtr ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Sending WM_LBUTTONDBLCLK to a ListView control
    ... "app a" is definately a Listview. ... public const UInt32 WM_MOUSEACTIVATE = 0x0021; ... public static extern IntPtr SendNotifyMessage(IntPtr hWnd, uint Msg, ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Perpetual Scrolling Window
    ... The closest I've gotten is to use a RichTextBox and append text to it. ... If you have a data store of anykind that can feed t he ListView you can then set the ListView to virtual and set the count to the number of items in your data store. ... I have an app that loads about 25K items into 10 virtual listboxs on app startup. ...
    (microsoft.public.dotnet.languages.vb)