`SetWindowLong()` function doesn't change window style even after calling `SetWindowPos()`
问题 I create the static control with the code below: hWnd = CreateWindowExW( 0, L"STATIC", Content.c_str(), SS_LEFT | WS_VISIBLE | WS_CHILD /*| SS_SUNKEN*/, 200, 120, 120, 40, hWndParent, NULL, hInstance, NULL); If I enable the SS_SUNKEN style in the creation code above, the created static control appears sunken successfully. But, what I'm trying to do is the change the control style after its creation. I tried this: void BaseWindowClass::AddStyle(DWORD NewStyle) { // NewStyle = 0x00001000 = SS