Click to See Complete Forum and Search --> : keyboard shortcuts and icons in menus


OrganicBytes
October 7th, 2009, 07:20 PM
I know this is probably a very basic question but I can't seem to figure out how to do this.

How do you add keyboard shortcut text to the right of menu items in a menu resource?

Here's what I mean,

---------------------
File
---------------------
New Ctrl + N
Open Ctrl + O
---------------------

Also, does windows come with standard icons that you can use for menu items too?

Thanks.

hoxsiew
October 7th, 2009, 10:34 PM
Insert a TAB into the menu text with a "\t" like so (The ampersand makes "N" the hotkey):


"&New\tCtrl+N"

Ajay Vijay
October 8th, 2009, 02:29 AM
These articles may help to draw icons:
www.codeguru.com/cpp/controls/menu