Advice needed: How to extend a Lister plugin menu?

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
HenrikHusted
Junior Member
Junior Member
Posts: 39
Joined: 2003-03-24, 10:47 UTC

Advice needed: How to extend a Lister plugin menu?

Post by *HenrikHusted »

Hi all,
I'm putting together a new lister plugin and need a bit of advise. My lister plugin has a lot of options which should be in the menu when the plugin is loaded.
It's no problem to display my menu but how to I get the messages (WM_COMMAND's) send down to me? The main hwnd is owned by the Lister itself so all messages is send to it.
I can subclass the Lister's hwnd so _all_ messages go to me but this seems to be causing some problems (crashes) when the Lister closes. I do send all messages back to the Lister before I react to them but obviously I'm doing something wrong.

So here's the question. How should I implement my menu handling?
Post Reply