function HookProc(nCode, wParam, lParam: Integer): Integer; stdcall;
begin
if wParam=WM_LBUTTONDBLCLK then
messagebox(0,PWideChar('wParam: '+IntToStr(wParam)),'ok',mb_ok);
Result := CallNextHookEx(hhk, nCode, wParam, lParam);
end;hhk:= SetWindowsHookEx(WH_MOUSE, HookProc, hInstance, 0);请问如何取得鼠标双击的是哪个文件,如何取得双击的文件名,(只hook双击到的是文件)
begin
if wParam=WM_LBUTTONDBLCLK then
messagebox(0,PWideChar('wParam: '+IntToStr(wParam)),'ok',mb_ok);
Result := CallNextHookEx(hhk, nCode, wParam, lParam);
end;hhk:= SetWindowsHookEx(WH_MOUSE, HookProc, hInstance, 0);请问如何取得鼠标双击的是哪个文件,如何取得双击的文件名,(只hook双击到的是文件)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货