This method calls the CreateParams method to get the styles to apply. The styles assigned to the Style and ExStyle properties of the CreateParams assigned to the control's CreateParams property are reapplied. The control is repainted to reflect the style changes if necessary.
The UpdateStyles method has no effect if the IsHandleCreated property value is false.
// Set the value of the double-buffering style bits to true. this->SetStyle( static_cast<ControlStyles>(ControlStyles::DoubleBuffer | ControlStyles::UserPaint | ControlStyles::AllPaintingInWmPaint), true );
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)