Can anyone figure this out? The mIRC script editor's edit box doesn't seem to like to be subclassed... It seems to crash mIRC after a few seconds with an access violation; however, i recently upgraded to vista and wanted to make sure it wasn't that. So can someone let me know if they have the same problems?

Here is my code Its just straight up subclassed then call the next proc

Quote:
Some Function {
SetProp(hwEdit,"OldProc",(HANDLE)SetWindowLong(hwEdit,GWL_WNDPROC,(LONG)eSub));
}
LRESULT __stdcall eSub(HWND hwEdit, UINT msg, WPARAM wp, LPARAM lp)
{
WNDPROC p = (WNDPROC)GetProp(hwEdit,"OldProc");
return CallWindowProc(p,hwEdit,msg,wp,lp);
}

I really need access to the messages sent to the window so I haveta figure out something...

Dont forget if you test this its the rich edit box being subclassed not the editor window

Thanks
Alex


hmmm signed by me