If you're using a DLL like MDX, it may be interfering in the way events are processed, and as far as I remember your method is exactly how you catch a right click event in MDX, but afaik in native mIRC right clicks are only caught on the dialog itself.