Example #1
0
		protected override void CreateHandle()
		{
			if (!RecreatingHandle)
			{
				INITCOMMONCONTROLSEX icex = new INITCOMMONCONTROLSEX();
				icex.dwSize = Marshal.SizeOf(typeof(INITCOMMONCONTROLSEX));
				icex.dwICC = (int)(CommonControlInitFlags.ICC_BAR_CLASSES | CommonControlInitFlags.ICC_COOL_CLASSES);
				bool  fail = WindowsAPI.InitCommonControlsEx(icex);
			}
			base.CreateHandle();
		}
Example #2
0
		public static extern bool InitCommonControlsEx(INITCOMMONCONTROLSEX icc);
Example #3
0
		protected override void CreateHandle()
		{
			// Make sure common control library initilizes toolbars and rebars
			if ( !RecreatingHandle )
			{
				INITCOMMONCONTROLSEX icex = new INITCOMMONCONTROLSEX();
				icex.dwSize = Marshal.SizeOf(typeof(INITCOMMONCONTROLSEX));
				icex.dwICC = (int)(CommonControlInitFlags.ICC_BAR_CLASSES | CommonControlInitFlags.ICC_COOL_CLASSES);
				WindowsAPI.InitCommonControlsEx(icex);
			}

			base.CreateHandle();
		}
Example #4
0
 public static extern bool InitCommonControlsEx(INITCOMMONCONTROLSEX icc);