Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QMGrid questions
#2
QM_Grid control inherits almost everything from SysListView32 control. When you select an item in list view control, it sends several notification messages in WM_NOTIFY message. Useful can be LVN_ITEMCHANGED, NM_CLICK, LVN_KEYDOWN. Documented in MSDN.

Example:
Function gridNotify
Code:
Copy      Help
sel nh.code ;;nh is NMHDR*, which is lParam of WM_NOTIFY message
,case LVN_ITEMCHANGED
,NMLISTVIEW* nlv=+nh
,if(nlv.iItem<0 or nlv.uNewState&LVIS_SELECTED=0) ret
,out nlv.iItem ;;selected listview item index

---------------------------
By default all rows can be deleted.
If QG_NOAUTOADD style used (see LVM_QG_SETSTYLE message), all rows cannot be deleted.
A single row cannot be protected from deleting.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)