Click to See Complete Forum and Search --> : InsertMenuItem - Can you specify item as sub menu
4play
Feb 21st, 2001, 05:35 PM
I need to create sub menus at runtime.
I cant do it with control arrays as they just become menu items.
Can the insertmenuitem be used for my purpose?
adam
Lord Orwell
Feb 21st, 2001, 09:21 PM
Yes. However, you will need to subclass the window to trap the events caused by clicking the new menu entries (they will pass their unique id number).
4play
Feb 21st, 2001, 11:47 PM
My knowledge of API is limited. Can you give me a bit more info on how iw ould do that?
adam
Lord Orwell
Feb 22nd, 2001, 12:12 AM
im not real strong in subclassing. Hopefully someone else who has done a lot of it will see this post and make some code for you.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.