I am having trouble with accelerators and typing in edit controls. For example, if the user is typing text in an edit control in the app, and presses the delete key, instead of deleting a character like normal, it sends the ID_EDIT_DELETE command, causing the selected objects to be deleted. How can I fix this? I think I need to override PreTranslateMessage, and check what window has focus before passing it on, but I really don't know what to do in PreTranslateMessage. I would appreciate any help