I dont think that using any API you can get this style back. because this is not the property of window. This is just a text formatting method. To make this foramtting work you should use it with DT_EDITCONTROL as shown below
pDC->DrawText( , , DT_WORDBREAK | DT_EDITCONTROL );