I can add styles to a dialog runtime with GWL_STYLE,GetWindowLong so,
but I can not remove styles with using ! operator prior to styles. For this instance,Code:static DWORD oldStyle; oldStle=GetWindowLong(hwnd,GWL_STYLE); SetWindowLong(hwnd,GWL_STYLE,oldStyle|WS_MINIMIZEB OX);
what is the true way? I'm studying on a Propert Sheet dialog.Code:oldStle=GetWindowLong(hwnd,GWL_STYLE); SetWindowLong(hwnd,GWL_STYLE,oldStyle & !WS_MINIMIZEBOX);