Murugan.com
Murugan Andezuthu Dharmaratnam

  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  PHP   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  



Win32 Listview selection lost on clicking another window


Home   VC++   Win32 Listview selection lost on clicking another window 
       

While creating list view just add this LVS_SHOWSELALWAYS to Windows Style


hWndListView = CreateWindow(WC_LISTVIEW, 
                                "", 
                                WS_CHILD | LVS_REPORT | LVS_EDITLABELS | LVS_SHOWSELALWAYS, 
                                rectClient.left, 
                                rectClient.top, 
                                rectClient.right - rectClient.left, 
                                rectClient.bottom - rectClient.top, 
                                hWnd, 
                                (HMENU)ID_LIST, 
                                hInst, 
                                NULL); 

If you want to get the inxed on the selected List view then use this
int selecteditem =	SendMessage(hWndLV, LVM_GETNEXTITEM, -1, MAKELPARAM (LVNI_SELECTED, 0)); 

.Net VC File IO Sample Code

activex mdb

com smartcard

COM variant Data type

DirectX Store Video as mpeg

GetLastError() in VC++ Win32 Display the Value in a MessageBox

GetWindowName() VC++ Win32 Get a Window Name Given Handle

index

multi threaded socket

shellexecute open internet explorer

VC Win32 Tree View Control Change Background color of tree

VC++ 6.0 Win32 SetParent () Add an Existing Window as child window of another or Dynamically add a child window or Assign Window to a parent

VC++ 6.0 Win32 Splitter control like SplitContainer in .Net

VC++ 6.0 Win32 What are the Different Windows Controls That are Available in Win32 Non MFC

VC++ DWORD To String

VC++ Error LNK2001 unresolved external symbol public static

VC++ Win32 compare string with empty character constant

VC++ Win32 Compress Video To Mpeg

VC++ Win32 Exit Application

VC++ Win32 FTP Sessions Client Application

VC++ WIn32 IP from domain name

VC++ win32 Listview Get Selected Item

VC++ win32 ListView or LIST Control how to scroll to a list or make sure that a list item is visible

VC++ Win32 ListView SelectedItem()

VC++ Win32 Open in Internet explorer or firefox



  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  PHP   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  

Copyright 2009 @ Murugan Andezuthu Dharmaratnam