Only draw a themed border when edit control has WS_EX_CLIENTEDGE