Change button browse order
-
Hi guys, I have a dialog with serveral CButtons. I notice I can go through (highlight) the button by pressing UP/DOWN/LEFT/RIGHT arrow key, however, it is not in the order I want. I am wondering if there is a quick way to change the "browse order" without manually doing it using WM_KEYDOWN. Has it got something to do with Resource.h ? Also, in the dialog based application, Does hitting the Return(Enter) key always call the OnOK()? In my app (where there are child dialogs), sometimes it calls OnOK() of the parent dialog but sometimes it would launch OnBnClicked() of default button on the parent window. Is there a way I can insure to alawys call the OnOK()? Please help, Thanks alot.
-
Hi guys, I have a dialog with serveral CButtons. I notice I can go through (highlight) the button by pressing UP/DOWN/LEFT/RIGHT arrow key, however, it is not in the order I want. I am wondering if there is a quick way to change the "browse order" without manually doing it using WM_KEYDOWN. Has it got something to do with Resource.h ? Also, in the dialog based application, Does hitting the Return(Enter) key always call the OnOK()? In my app (where there are child dialogs), sometimes it calls OnOK() of the parent dialog but sometimes it would launch OnBnClicked() of default button on the parent window. Is there a way I can insure to alawys call the OnOK()? Please help, Thanks alot.