Re: Moving in a Listview



I am using a ListView (CListCtrl) to show numerical data in a grid and a
second view where data is shown graphically. When the user is moving the
cursor in the graphics view I would like to synchronize the grid view so the
current line in the listview should be changed accordingly. How can be set
the current line (which is shown by inverse representation) in the listview?

Use CListCtrl::SetItemState with LVIS_SELECTED.

Dave
.



Relevant Pages

  • Re: Making forms modal
    ... As I said earlier, I want to show my form which has a listview, then place ... and place the appropriate graphic and text in the column header. ... the listview with the graphics, hide the form, and show it again modally. ... Is there and API? ...
    (microsoft.public.vb.controls)
  • Re: Listview size
    ... dim g as graphics = myListView.CreateGraphics ... I am then filling and sizing the listview in that ... >>Dim fmt As StringFormat = New StringFormat ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Rapid Open/Close of a Windows Form
    ... All I want to do is trick Windows into not disposing the control's graphics ... Is there another grid control that would make it possible? ... >>I have a Windows Form with a very large ListView, about 10,000 items. ...
    (microsoft.public.dotnet.languages.csharp)
  • Moving in a Listview
    ... I am using a ListView to show numerical data in a grid and a ... cursor in the graphics view I would like to synchronize the grid view so the ... current line in the listview should be changed accordingly. ...
    (microsoft.public.vc.mfc)
  • Getting listview doublebuffered and exporting OnPaint method problem
    ... listview inside a panel that would have more controls (The panel would ... Graphics grBuffer = Graphics.FromImage; ...
    (microsoft.public.dotnet.framework.compactframework)