[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

Change the Navigation Key in Dialog

In dialog windows navigation between controls is implemented by Tab and Shift+Tab keys. I need to implement the navigation by Enter key. Default push button is not necessary.
0
airat
Asked:
airat
1 Solution
 
chensuCommented:
The easiest way is to override OnOK.

void CMyDlg::OnOK()
{
    this->NextDlgCtrl();
}
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now