I'm trying to change a view window everytime a listview changes selections. I noticed there is no equivalent to "lbn_selchange", so I'm just trying t trap every event that would move the highlight bar in the listview:
This is working for clicks on the listview, but not on the up/down/pageup/pagedown/home/end keys when they are pressed!
Any ideas??
Code:
case %wm_notify dim nmhp as nmhdr ptr dim lpnmk as nmkey ptr select case lowrd(wparam&) case 101 ''listview nmhp=lparam& select case @nmhp.code case %lvn_columnclick ''column header click case %nm_dblclk ''double click postmessage hwnd&,%wm_command,%idok,0 case %nm_click gosub switchasbpics case %nm_keydown lpnmk=lparam& select case @lpnmk.nvkey case %vk_up,%vk_down,%vk_prior,%vk_next,%vk_home, _ %vk_end gosub switchasbpics end select end select end select
Any ideas??
Comment