Just because you're a control doesn't mean that you're necessarily inside a dialog box

Prerequisites: Moderate to advanced understanding of the window and dialog managers. When you're implementing a control, you need to be aware that you aren't necessarily being hosted inside a dialog box. One commenter suggested handling and closing the dialog box as a way to prevent multi-line edit controls from eating the Enter key. But the edi...