Print Page | Close Window

Combo Box Enter Key Event

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Visual C++ MFC Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=2180
Printed Date: 10 May 2024 at 8:59am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Combo Box Enter Key Event
Posted By: nsuresh79
Subject: Combo Box Enter Key Event
Date Posted: 03 May 2005 at 11:14pm
Hi,
I am using an Active X control that displays an Property sheet.Property sheet has many property pages and these pages have lot of controls like edit,listbox,spin control,combo box control.These controls are created dynamically.

For combo box, I derived a new class from CCombo and creating an instance of that class.
Problem is I am not able to track Enter key. I tried to capture in "OnKeyDown" event of combo box derived class and also "pretranslate" function of Propertysheet/page class.
Whenever I pressed "Enter", focus is in that combo box only.

Thanks in advance



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net