I don't remember it all but:

CreateWindowEx(WS_EX_CLIENTEDGE, "Edit",...the rest is the same as any other control