Skip to content

Commit

Permalink
Applied WS_EX_COMPOSITED style to registry editor form
Browse files Browse the repository at this point in the history
  • Loading branch information
d3agle committed Aug 12, 2016
1 parent 546719d commit a5124b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Server/Controls/RegistryTreeView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,5 @@ public RegistryTreeView()
//Enable double buffering and ignore WM_ERASEBKGND to reduce flicker
SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
}

protected override CreateParams CreateParams
{
get
{
CreateParams handleParam = base.CreateParams;
handleParam.ExStyle |= 0x02000000;// WS_EX_COMPOSITED
return handleParam;
}
}
}
}
10 changes: 10 additions & 0 deletions Server/Forms/FrmRegistryEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ public FrmRegistryEditor(Client c)
InitializeComponent();
}

protected override CreateParams CreateParams
{
get
{
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000; //WS_EX_COMPOSITED
return cp;
}
}

#region Main Form

private void FrmRegistryEditor_Load(object sender, EventArgs e)
Expand Down

0 comments on commit a5124b3

Please sign in to comment.