11-27-2008, 11:15 AM
You don't see what you select because grid control is not focused. It loses focus when you click a button.
Testing:
Add button with id 12.
Add this code:
Function dlg_QM_Grid2
To see listview selection when it is not focused, add LVS_SHOWSELALWAYS style.
3 QM_Grid 0x54210009 0x200 0 0 232 140 ""
Testing:
Add button with id 12.
Add this code:
Function dlg_QM_Grid2
,
,case 12 ;;Select 2 rows
,SetFocus id(3 hDlg)
,LvSelect id(3 hDlg) 0 2|4 ;;sel first row
,LvSelect id(3 hDlg) 1 1 ;;and next rowTo see listview selection when it is not focused, add LVS_SHOWSELALWAYS style.
3 QM_Grid 0x54210009 0x200 0 0 232 140 ""
