|
-
Aug 15th, 2000, 07:06 PM
#1
Thread Starter
Addicted Member
Hi
I need to disable the right click in my program so it dos not activate the popup menu.
I searched for it and saw some code but I could not use them because of some code like If (IsWindow(m_lhWnd) <> 0)
Can anyone please help?
-
Aug 15th, 2000, 08:04 PM
#2
you could modify this a little to get what you want
http://www.vbsquare.com/tips/tip400.html
-
Aug 15th, 2000, 08:04 PM
#3
Try dropping the <> 0. And assuming you are referring to the Popup menu? thread:
Code:
Private Declare Function IsWindow Lib "user32" (ByVal hWnd As Long) As Long
If (IsWindow(m_lhWnd)) Then '...
-
Aug 17th, 2000, 05:28 AM
#4
Thread Starter
Addicted Member
Thanks All,
I tried the codes but they do not work on any other applications or I could'nt get it to work.
As Matthew pointed out I want to disable the right click in
order to Stop the popup menu poping up,but I want it to work on desktop and any other application that is active.
-
Aug 25th, 2000, 09:22 PM
#5
Thread Starter
Addicted Member
Isn't there anybody to help?
I need to be able to dissable the right mouse popup menue Badly
-
Aug 26th, 2000, 11:01 AM
#6
New Member
same problem!
i have the same problem, i included a flash4 movie into a vb6 app and want to avoid that the flashinfo popup menu appears when clicking with the right mouse button.
can anybody solve that problem?
that would be great...
thank you...
-
Aug 26th, 2000, 05:15 PM
#7
Monday Morning Lunatic
How about a Windows hook? I think Yonatan is the guy to ask for this.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 26th, 2000, 05:19 PM
#8
Fanatic Member
See if this helps you at all.
D!m
-
Aug 26th, 2000, 05:26 PM
#9
parksie, window hooking requires subclassing and you can only do it for your program, not other Windows.
The link Dim gave is probably the closest anyone is going to get. There is no way to disable every right click menu in Windows, at least not that I know of.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|