المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to capture "Enter Key"?



C++ Programming
04-02-2009, 10:41 AM
Hello all.

I've a dialog box application and in that i'm taking 2 bitmaps which behaves like buttons.. Initially My OK Bitmap button is disable and CANCEL bitmap button is enabled, I've one field for password, when user gives right password OK bitmap button get enabled and i can click on that....Now my problem is that despite of clicking if user presses ENTER key it should behave like mouse click...

So intot i need to know how to capture Enter Key.. Small search gave me that i need to handle WM_KEYDOWN and VK_RETURN...

Thanks all http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif