C++ WM_NCCALCSIZE not being sent
问题 I'm trying to center the text in a edit control vertically, after some research I found I have to process the WM_NCCALCSIZE message. So i've subclassed my edit control, but the WM_NCCALCSIZE message is never sent. Am I doing something wrong? EDIT: So i'm processing the WM_NCCALCSIZE message fine, and I have a 3d border created by passing WS_EX_CLIENTEDGE to CreateWindowEx . But if I disable windows themes by killing the theme service, the border goes away on the control thats processing the