I am new to MFC.
I have created a Dialog in MFC application.
I have added two buttons in the dialog and
dynamically i have created a Toolbar and added two buttons to the Toolbar.
NOw, ON tab change, I am getting the focus in the button of tool bar but when enter key is pressed the application gets closed.
I have implemented a overridden function PreTranslateMessage. But on Enter key pressed, this overridden function is not called. ON Enter Key Down, Oncancel event is called and application gets closed.
But when i created a simple button, and on enter key press, the overridden Function PreTranslateMessage is called properly.
Can any one help me on finding a good solution?
I will be really grateful and thanking you in advance.
Lakshmanan C B