Thema: Delphi Looking 4 help

Einzelnen Beitrag anzeigen

Mr.Sade

Registriert seit: 25. Feb 2003
17 Beiträge
 
Delphi 6 Enterprise
 
#3

Cool :)

  Alt 25. Feb 2003, 07:53
I have look for help in my language, but they have not work on Hooks, Subclassing, and MMF.

I would like to Subclass Notepad, I have set a CBT hook to know when windows are created and destroyed.
If the window's created class is equal to "Notepad" I subclass it and store some values on Memory with MMF to share the data.
Inside my new Notepad WNDPROC function I add a dynamic menu to it, and when I click in it, I will show a messagebox like You clicked item 1, etc.

Everything works good with with 1 instance, but when I open more than one instance of notepad it crashes.
I think I need an array to stored the values that SetWindowLong returns
for each instance of Notepad
If someone would like to help me to finish my proyect I will send you my Dll Code.
It's about Hooks, Subclassing and MMF.
Thanks

P.S: my ICQ number is you would like to contact me: 102211848
Mr.Sade
  Mit Zitat antworten Zitat