Click to See Complete Forum and Search --> : We have a problem with a Button


Gedrain
April 22nd, 1999, 09:38 AM
Hello people.

I have a bit problem with a Standard button under VC5.0.

I need to know what function i can use what checks if the button is pressed.


thx people plz help me out..

Masaaki
April 22nd, 1999, 10:57 PM
Hi.

For example, if we click the button by the mouse, the message box
says "Click by mouse". If we push the button by Enter key,
the message box says "Push the button."
If you want this program, try PreTranslateMessage() and CWnd GetFoucs(). And check mouse click and enter key, and compare CWnd of button
and GetFocus().
Probably works.

HTH.
-Masaaki Onishi-