window subclass

i saw a example of subclassing a window in another process http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_20429026.html. Can someone give me an example I tried calling sethook but its not working on various programs. like notepad's main class is notepad but still doesnt work though. Can someone get that example working with something like notepad?

Thanks,
Thor371
Thor371Asked:
Who is Participating?
 
GloomyFriarConnect With a Mentor Commented:
Hi Thor371,

could you explain more detailed what you want to make, please?
0
 
Thor371Author Commented:
GloomyFriar the link i provided subclasses a window inside a seperate process which isnt my own. It is supposed to append menus to the process and then hook the wm_command message so that my application gets notified when my added menus are click so I may act on the fired events. I'm under the impression too that any unhandled messages, messages that i'm not filtering for, example --> wm_mbuttondown I should suppress with wm_null or give back to the old wndproc of the process before I modified the window behavior.

Thor371
0
 
Thor371Author Commented:
hello?
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
GloomyFriarCommented:
Take a look:
http://www.remotelysupported.com/gloomyfriar/_SubNotepad_20050515.rar

It works for me. It was compiled under Delphi7 and tested under w2k with the standard Notepad.
0
 
Thor371Author Commented:
thanks gloomy
0
 
GloomyFriarCommented:
you are welcome :)
0
 
smotCommented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.