[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] XaAES: menus in windows - window handle?



On 08/04/2010 09:22 PM, Helmut Karlowski wrote:

I guess these are needed for nested submenus (menu from a menu). But
then the topmost 'parent' should point to - the window, shouldn't it?
That doesn't help much, as you can't detect which window the menu is attached when a sub-menu is selected. I suggest abusing msg[1]. This normally contains the apid of the sender. If MN_SELECTED is sent "from a window", then put the window handle in msg[1] instead. Or maybe -(handle), then it's easy to distinguish window handles from apids.

Jo Even