|
Hi,
Hmm of course, in BeforeClick it is not yet clicked so not yet selected. I have no idea's right now. If I come up with something I will reply again here, maybe some others have some inspiration ?
Yes sometimes you will see the mappoint menu for a small time with this approatch. I think you canonly call this a minor flaw and nothing to do unless you find another approach.
It should be reliable, but then you have to do it as this:
1 send the escape key
2 post a message to custom message handler
3 let the custom message handler create your menu
Windows messages events are always processed in right sequence so by doing it so, the escape key is send long before your menu is created. |