Created
March 20, 2014 05:16
-
-
Save MatthewKing/9657697 to your computer and use it in GitHub Desktop.
Double-buffering in WinForms using WS_EX_COMPOSITED
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// A System.Windows.Forms.CreateParams that contains the required creation parameters | |
/// when the handle to the control is created. | |
/// </summary> | |
protected override CreateParams CreateParams | |
{ | |
get | |
{ | |
CreateParams cp = base.CreateParams; | |
cp.ExStyle |= 0x02000000; // WS_EX_COMPOSITED | |
return cp; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment