如何禁止开始菜?(100分)

  • 主题发起人 主题发起人 nbwzw
  • 开始时间 开始时间
N

nbwzw

Unregistered / Unconfirmed
GUEST, unregistred user!
最好有源码
 
EnableWindow(FindWindowEx(FindWindow('Shell_TrayWnd', nil),0,'Button', nil),false);
 
这样好像在键盘操作下无效
 
隐藏启动菜单
procedure hideTaskbar;
var wndHandle : THandle;
wndClass : array[0..50] of Char;
begin
StrPCopy(@wndClass[0], 'Shell_TrayWnd');
wndHandle := FindWindow(@wndClass[0], nil);
// This hides the taskbar
ShowWindow(wndHandle, SW_HIDE);
end;


//隐藏右键菜单
procedure showTaskbar;
var wndHandle : THandle;
wndClass : array[0..50] of Char;
begin
StrPCopy(@wndClass[0], 'Shell_TrayWnd');
wndHandle := FindWindow(@wndClass[0], nil);
// This restores the taskbar
ShowWindow(wndHandle, SW_RESTORE);
end;
 
没看到过真正解决的方法.
 
用键盘操作还是有效果的
 
参考美平
 
可以考虑用DLL加载到Explorer进程中,监视所有关于鼠标和键盘信息,如果发现鼠标信息中
的pointer和我们设定的(开始按钮的位置)一样就自己处理,如果发现win键按下,一样处理
代码我现在还没有做,今天才刚刚看到你的问题!
 
var H: HWND;
H:=FindWindow('Shell_traywnd',nil);
H:=FindWindowEx(H,0,'Button',nil);
EnableWindow(H,False); --否则设定为true
 
小心使用,后果自负。

Date: January 31, 2001 02:43 PM
Author: luc nguyen (lawnguyen@hotmail.com)
Subject: disable startmenu



I will show you guy the easy way to do it and it will work on any kind of operating system. Go to HKEY_CLASSES_ROOT and find the key CLSID and double click on it and you will find all kind of subkey and find the startmenu subkey.Please look for the one start with 46...... and hightlight that on the right hand side it should say " startmenu".Double click on the key and you will see "Inprocserver" and hightlight that , take a look at the right hand side again you will see the path and double click one the path and insert the capital letter "I" at the end , close the registry and click on the startmenu , it will not work no more. This one is just disable left mouse click on the startmenu. To disable the right mouse click go to HKEY_ CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Policies/Explorer. Hightlight the explorer key on the right hand side create 2 value reg_dword and set it to 1. The name of the 2 value is NoTrayContextMenu and NoViewContextMenu. This one is seem to be long a little bit but if you follow step by step , you will get it for sure.




(http://www.win2000mag.net/Forums/Application/thread.cfm?CFApp=64&Message_ID=153682)

 
是不是可以通过捕捉键盘和鼠标的所有消息,用自己的消息处理程序处理来屏蔽?
 
后退
顶部