ENTER on Button
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
How can I achieve, that "Enter" works on a certain Button ? I´d like to change this during program. Sometimes Button "A" should work on ENTER, sometimes another one.
If you have a dialog-based application, you could set the default button with CDialog::SetDefID( UINT nID ) where nID is the ID of the new default button. Hope this helps -- Roger
It's supposed to be hard, otherwise anybody could do it!
-
If you have a dialog-based application, you could set the default button with CDialog::SetDefID( UINT nID ) where nID is the ID of the new default button. Hope this helps -- Roger
It's supposed to be hard, otherwise anybody could do it!