| 发表于:2007-07-04 10:06:552楼 得分:0 |
'为flexgrid右键选中并单击声明的api public declare function sendmessage lib "user32 " alias "sendmessagea " (byval hwnd as long, byval wmsg as long, byval wparam as long, lparam as any) as long public const wm_lbuttondown = &h201 private sub msfeventrecord_mouseup(button as integer, shift as integer, x as single, y as single) '事件队列右键菜单 if button = 2 then dim l as long l = y * &h10000 or x l = l / 15 sendmessage msfeventrecord.hwnd, wm_lbuttondown, mk_lbutton, byval l popupmenu fmdimain.mu_eventlist end if end sub | | |
|