Did you try to handle TTN_NEEDTEXT notification in the dialog?