How to detect popup of a sub-menu of a popup menu (and how to populate it dynamically)?

Posted by Heinrich Ulbricht on Stack Overflow See other posts from Stack Overflow or by Heinrich Ulbricht
Published on 2010-05-11T10:30:09Z Indexed on 2010/05/11 10:34 UTC
Read the original article Hit count: 315

Filed under:
|

Hi everyone,

I have a popup menu which contains several menu items and one of them can have child items. This entry has a little arrow on the right and when you hover your mouse over it, a sub-menu will open. Now I want to populate this sub-menu at runtime, but only if the user actually opens it. If the user never opens the sub-menu, it will be empty (maybe contain a placeholder). How could I accomplish this? Is it even possible to modify a popup-menu when it is already visible?

Thanks for your help!

© Stack Overflow or respective owner

Related posts about delphi

Related posts about winapi