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.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


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!
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Internals & Software Drivers 25 Jan 2021 LIVE ONLINE
Developing Minifilters 8 March 2021 LIVE ONLINE