Yes another question about subclassing, however I got it to work for one situation but not the one I was hoping for.
I created a dialog box that is the only window, no parent window. I have an edit control that I would like to activate a button on the page when I press enter while the edit box has the focus. I searched this forum and Googled subclassing, read up on it and typed some lines in my program but it wouldn't work...nothing. Can't even get a MessageBox to come up from inside the subclassed window procedure.
However, I made a test program this morning with an edit control on the main window page and subclassing worked like a champ...1st time out. I used the same lines of code, etc, as the dialog box only program.
Why is this?