February 19th, 2009, 08:19 AM
OK, now it all makes sense!!
Many thanks!
February 19th, 2009, 07:50 AM
The problem is solved using the PreTranslateMessage, thanks for all who bothered to help!
It will still be nice to get an answer on my last question though...
February 19th, 2009, 07:09 AM
If I still want to do it straight-forward by inserting handlers, I can still the following handlers are available for each button control:
BCN_HOTITEMCHANGE, BN_CLICKED, BN_DOUBLECLICKED,...
February 19th, 2009, 06:12 AM
I read the answers alright, there's no need to offend or to attack. As someone who was introduced to the whole OOP concept literaly just a few days ago, I can only hope that the OOP veterans here can...
February 19th, 2009, 05:28 AM
I'm getting a little confused now - I'm trying all these advises but none is working. Let's start from the top:
Let's leave the calculator aside. Suppose I've just created a totaly new MFC...
February 18th, 2009, 06:22 PM
ok, let's try putting it this way:
I build a calculator (using MFC) that is implemented using a dialog box that contains a menu, buttons and an edit control. I would like the dialog box to control...
February 18th, 2009, 02:10 PM
I've already added the use of OnKeyDown. I press the keyboard upon startup of the dialog but this function is never entered. That what made me suspect the focus issue from the first place.
Then I...
February 18th, 2009, 07:01 AM
No, it was TRUE to begin with, the behavior stays the same.
I understood that returning FALSE tells the dialog manager (I'm not sure that's the name of it) that the focus was set to the current...
February 18th, 2009, 06:06 AM
Hi everyone,
I've created a dialog project to implement a simple calculator. I'm trying to set the focus to be on my dialog so I will be able to use the WM_KEYDOWN to capture keyboard input. I've...