System.Windows.Forms.CommandBarManager.CreateHandle C# (CSharp) Method

CreateHandle() protected method

protected CreateHandle ( ) : void
return void
        protected override void CreateHandle()
        {
            if (!this.RecreatingHandle)
            {
                NativeMethods.INITCOMMONCONTROLSEX init = new NativeMethods.INITCOMMONCONTROLSEX();
                init.Size = Marshal.SizeOf(typeof(NativeMethods.INITCOMMONCONTROLSEX));
                init.Flags = NativeMethods.ICC_BAR_CLASSES | NativeMethods.ICC_COOL_CLASSES;
                NativeMethods.InitCommonControlsEx(init);
            }

            base.CreateHandle();
        }