在窗口中屏避WIN7的鼠标手势功能

procedure DisibleWindowsGesture;
var
hDll: THandle;
fnRegisterTouchWindow: function(hwnd: HWND; ulFlags: Cardinal): BOOL; stdcall;
begin
hDll := LoadLibraryW(user32);
if hDll <> 0 then
begin
try
@fnRegisterTouchWindow := GetProcAddress(hDll, 'RegisterTouchWindow');
if @fnRegisterTouchWindow <> nil then
fnRegisterTouchWindow(Self.Handle, 0);
finally
FreeLibrary(hDll);
end;
end;
end;

 

posted @ 2011-11-18 11:45  liaj  阅读(194)  评论(0编辑  收藏  举报