i have created a dialogbox using c++ win32 API... there are 3 text box,1 combo box and 3 buttons...
now i have 2 problems...
1.when i press the ENTER button,it invoke second button(ID_OK) function,but i want to invoke first button(ID_MYBUTTON)...
2.i am using the code to focus a textbox is,
SetFocus(GetDlgItem(_hwnd, IDC_NAME));
But it cant focus that dialogbox,i mean cursor position is there,but cant get any value,when i typed...
Can anyone resolve it?