Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

associating a hotkey / alt + letter with a edit box

Robert_FernandoRobert_Fernando Member Posts: 63
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
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Kernel Debugging 30 Mar 2020 OSR Seminar Space
Developing Minifilters 20 Apr 2020 LIVE ONLINE
Writing WDF Drivers 11 May 2020 LIVE ONLINE
Internals & Software Drivers 28 Sept 2020 Dulles, VA