RE: A few questions.
yes, ok, that is if you create the menu starting from your own (a Plus!) window. Aka you have a way to know when and where to display it. But how do you detect a right mouse click on the chat window without subclassing the chat window? AFAIK, you can't...
You hav 2 possebilities as far as I can see atm:
1) or you start from your own window. Then you can indeed detect clicked menu items because the menu belongs to your own subclassed window.
(is what you're saying)
But then you'r stuck because you have no (decent) way to know where and when to show the menu with TrackPopupMenu in the first place, as you can't detect mouse clicks (in a decent not-polling way) on another window because its window messages are send to that other window.
2) or you alter the menu from the chat window itself to include your custom menu items too (very easy to do). But then you're stuck once again because you can't detect it when the user selects the items. Again because you can't subclass that window and detect your custom menu IDs.
(is what I've quickly 'tested' before)
-------
On the other hand I might be missing something obvious here though....
This post was edited on 05-04-2010 at 06:25 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
|