associating a hotkey / alt + letter with a edit box

Hi all,

Problem
Using Visual c6
How do I get the dialog edit or c++ CEditBox code to associate the text next
to the edit box as the hotkey that can activate the edit box ?

One example of what I am tying to do is the change password utility where
alt + letter activate the relevant edit box

.rc code that creates the dialog box with the edit controls

IDD_PASSWORD_DLG DIALOG DISCARDABLE 0, 0, 319, 77
STYLE DS_MODALFRAME | DS_SETFOREGROUND | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION “Enter Password”
FONT 8, “MS Sans Serif”
BEGIN
EDITTEXT IDC_PASSWORD,77,14,169,13,ES_PASSWORD | ES_AUTOHSCROLL |
WS_GROUP
EDITTEXT IDC_VERIFY_PASSWORD,77,36,169,13,ES_PASSWORD |
ES_AUTOHSCROLL | WS_GROUP
CONTROL “Create &Standalone exe”,IDC_STANDALONE_EXE,“Button”,
BS_AUTOCHECKBOX | WS_GROUP | WS_TABSTOP,77,57,88,10
DEFPUSHBUTTON “OK”,IDOK,255,15,50,14
PUSHBUTTON “Cancel”,IDCANCEL,255,34,50,14
LTEXT “&New Password:”,IDC_STATIC,16,16,53,10
LTEXT “&Confirm Password:”,IDC_STATIC,13,38,60,8
END

Do I need an acceleteator table in my .rc file to do this ?

Thanks
Robert Fernando
Mobile +44-(0)797-097-4050
Fax +44-(0)870-133-1992