I can add styles to a dialog runtime with GWL_STYLE,GetWindowLong,SetWindowLong APIs. But I couldn't remove dialog styles in the same manner. Can anybody give an example how to do this? I want to remove minimizebox style from a modeless dialog runtime.