|
-
Aug 29th, 2001, 01:36 AM
#1
Thread Starter
Member
select first item in a popup menu
Hello all,
I am displaying a popup menu using the TrackPopupMenu API function which works fine, except I want the first item in the menu to be the active item. In a standard application (Notepad for example) if you press Alt+F, the File menu pops up and the item 'New' is already the active item. Pressing down on the keyboard from that point moves to the next item ('Open' in this case). However when I display a menu via TrackPopupMenu, no item is selected by default. I can set the flags on the first item in the menu to contain MFS_HILITE which makes it look right, only you have to press the down arrow twice before it moves to the next item. All the MFS_HILITE flag does is make the button appear highlighted, it doesn't make it the active item. I know it can be done, Internet Explorer does it on its' fake toolbar/menubar thingy..then again, Microsoft does not always play fair . Sorry if this was a long post. Any help is most appreciated.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|