Ok, so I'm making an application and am putting the controls into the main window normally, rather than as a dialog box, for various reasons.

As you can see in the attachment, my Send button is set to BS_DEFPUSHBUTTON style. It's all being created when a user opens a new tab, and appears in the tab:

Code:
UserTab[NewID].hEdit = CreateWindowEx(WS_EX_CLIENTEDGE,WC_EDIT,0,WS_VISIBLE | WS_CHILD | WS_TABSTOP | ES_AUTOVSCROLL | ES_MULTILINE,15,(rcClient.bottom * 0.7) + 40,(rcClient.right * 0.73),48,hwnd,NULL,hInstance,0);
SendMessage(UserTab[NewID].hEdit,WM_SETFONT,(WPARAM)hFont,(LPARAM)0);

UserTab[NewID].hSend = CreateWindowEx(0,WC_BUTTON,"Send",WS_VISIBLE | WS_CHILD | WS_TABSTOP | BS_DEFPUSHBUTTON,(rcClient.right * 0.7) + 30,(rcClient.bottom * 0.7) + 40,75,23,hwnd,(HMENU)IDOK,hInstance,0);
SendMessage(UserTab[NewID].hSend,WM_SETFONT,(WPARAM)hFont,(LPARAM)0);

UserTab[NewID].hSend = CreateWindowEx(0,WC_BUTTON,"Cancel",WS_VISIBLE | WS_CHILD | WS_TABSTOP | BS_PUSHBUTTON,(rcClient.right * 0.7) + 30,(rcClient.bottom * 0.7) + 65,75,23,hwnd,(HMENU)IDCANCEL,hInstance,0);
SendMessage(UserTab[NewID].hSend,WM_SETFONT,(WPARAM)hFont,(LPARAM)0);
However, no matter what I do, when I press Enter in the edit control, it doesn't automate me pressing IDOK. I've tried passing the parent window DM_SETDEFID messages pointing to the IDOK button, but NOTHING'S HAPPENING <___<

Help? I've been working on this code for hours now to no avail whatsoever, including scouring through every MSDN article on it and ramming a billion searches into Google and Ask, absolutely nothing works thusfar =\