Re: How to get Acceleration Key for specific MenuItem ?
From: Randy Birch (rgb_removethis_at_mvps.org)
Date: 07/27/04
- Next message: Chris Calzaretta: "Re: Several questions on VB 6.0"
- Previous message: Randy Birch: "Re: WinAPI To Set Folder View Options"
- In reply to: [SolarAngel]: "How to get Acceleration Key for specific MenuItem ?"
- Next in thread: [SolarAngel]: "Re: How to get Acceleration Key for specific MenuItem ?"
- Reply: [SolarAngel]: "Re: How to get Acceleration Key for specific MenuItem ?"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 26 Jul 2004 22:20:39 -0400
If the accelerator you want is the underlined letter, you should be able to
do this with GetMenuItemInfo (assuming the menu's not in your app). Then
look in the string for a single & character, and the next character is the
accelerator key. If && is present skip it, as that's the code to print an
actual ampersand, as in "Open && Save" = "Open & Save". Although I don't
have a demo ready, the code at
http://vbnet.mvps.org/code/menu/radiobutton.htm shows calling this API.
-- Randy Birch MVP Visual Basic http://vbnet.mvps.org/ Please respond only to the newsgroups so all can benefit. "[SolarAngel]" <not-for-mail> wrote in message news:uD54pJ2cEHA.2236@TK2MSFTNGP10.phx.gbl... : I need to pass handle to menu item and retrieve Acceleration key for that menu item, is this possible? : : Thanks! : : [SolarAngel] : :
- Next message: Chris Calzaretta: "Re: Several questions on VB 6.0"
- Previous message: Randy Birch: "Re: WinAPI To Set Folder View Options"
- In reply to: [SolarAngel]: "How to get Acceleration Key for specific MenuItem ?"
- Next in thread: [SolarAngel]: "Re: How to get Acceleration Key for specific MenuItem ?"
- Reply: [SolarAngel]: "Re: How to get Acceleration Key for specific MenuItem ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|